Hi!

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:

Color buffer:
depth 32 : argb32 (bpp 32)
depth 24 : xrgb32 (bpp 32)
depth 16 : rgb16 (bpp 16)

Depth buffer:
depth 32 : z32 (bpp 32)
depth 24 : x8z24 (bpp 32)
depth 16 : z16 (bpp 16)

Depth_Stencil buffer:
depth 32 : s8z24: (bpp 32)

Any objections?

Thanks,
Thomas

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to