]> xenbits.xensource.com Git - xen.git/commit
ioemu: sdl blitting
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 3 Mar 2008 11:06:31 +0000 (11:06 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 3 Mar 2008 11:06:31 +0000 (11:06 +0000)
commite5c75e5aa66e9548ebabc80e51e56553868b2ded
treecd7e27de8ba513c9ed62e0940edb23195f5338e8
parent318de0dcf40615b8bf36c3e6cef7b3c41aff8812
ioemu: sdl blitting

Right now qemu takes care of converting pixels between the guest pixel
format and the sdl pixel format, after that qemu also memcpy the
converted pixels to the sdl buffer in video ram. This process can be
improved using the SDL blit capabilities: the patch I am attaching
creates an SDL Surface from the Cirrus VGA framebuffer and uses SDL
blitting functions to convert and write pixels to video ram. SDL
blitting functions are optimized and can even be hardware accelerated
on some platforms.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/ioemu/hw/vga.c
tools/ioemu/sdl.c
tools/ioemu/vl.h
tools/ioemu/vnc.c