[Mesa-dev] [RFC] Change dri state tracker GetBuffersWithFormat format encoding

Michel Dänzer michel at daenzer.net
Mon Dec 5 06:39:45 PST 2011


On Mon, 2011-12-05 at 15:21 +0100, Thomas Hellstrom wrote: 
> 
> Currently the DRI state tracker sends the bits per pixel (bpp) value in 
> the format member of a
> getbufferswithformat request, and assumes it can reinterpret the format 
> of the returned buffer to something else
> with an identical bpp.
> 
> That doesn't really work for vmwgfx. We can't reinterpret a surface 
> format (for example from ARGB to XRGB) and
> I would therefore like to change the dri state tracker to send the depth 
> instead of bits per pixel, so that the X server driver
> knows exactly what format it is supposed to create:

No objections, in fact, that's how at least the xf86-video-ati driver
interprets the format anyway.


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the mesa-dev mailing list