Hi all, 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. Best Regards, Stefano Stabelllini _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Stefano Stabellini wrote:> Hi all, > 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> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I found a little mistake in the patch (a break statement missing), so I am reposting it fixed. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel