qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 4 of 5] sdl shared buffer support


From: Stefano Stabellini
Subject: Re: [Qemu-devel] [PATCH 4 of 5] sdl shared buffer support
Date: Mon, 08 Sep 2008 15:20:13 +0100
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

Anthony Liguori wrote:

> Stefano Stabellini wrote:
>> This patch implements shared buffer support in sdl.c.
>> It also supports paletted 8 bit colour depths using the
>> palette functions provided by the SDL library.
>>   
> 
> So the theory goes that it's possible with this patch that both surfaces
> are hardware surfaces so blitting is fast?


The theory goes that SDL blitting and color conversion functions should
be as optimized as you can get, and hardware accelerated if your card
supports it.
Besides I think that offloading blitting and color conversion to a
graphic library is a good idea.

> In practice, when using X11
> both surfaces are going to be XShmImages so I don't think this is going
> to perform any better than the current code.

Only the guest framebuffer derived surface is always a software surface,
the host window can be an hardware surface (as far as I know).

> Do you have any sort of measurements that show an advantage with this
> patch?

I don't have any numbers, but I'll try to get some.

> I sort of think you want the opposite interface.  One where the VGA code
> uses ds->data directly if the guest ds->data is in a supportable format.

Not really, because the frontend can often change his own internal
resolution and pixel format (ex.: vnc).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]