qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 0 of 3] vnc and vga improvements


From: Stefano Stabellini
Subject: Re: [Qemu-devel] [PATCH 0 of 3] vnc and vga improvements
Date: Fri, 29 Aug 2008 11:12:28 +0100
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

Gerd Hoffmann wrote:

> And maybe the buffer sharing can be implemented in a way that we can
> turn it on and off at runtime?  So the common case of at most one client
> can run with buffer sharing, otherwise we copy to per-client buffers?
> I'm not a vnc protocol expert though.
> 
> Looking at the patches, it seems buffer sharing is optional already
> (usage depending on the color depth right now it seems).
> 

Yes, it is optional already: every time the guest changes colour depth
vga.c calls dpy_resize_shared (if implemented); dpy_resize_shared checks
the new colour depth and if vnc can support it, then switches the vnc
server internel colour depth to the new one and set shared_buf to 1.
If the vnc server cannot support the new colour depth (for example the
vnc protocol doesn't support 24 bit depth with 24 bpp, only 24 bit depth
with 32 bpp) then set shared_buf to 0 and we are back to the old colour
conversion code.




reply via email to

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