This commit enables ARGB2101010 system framebuffers (that is, DRI drawables)
for the i965 drivers. This is done by generating DRI configs that advertise
this color format as well as teaching intelCreateBuffer to pick the right
color format when it sees such a DRI config.
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
if (mesaVis->redBits == 5)
rgbFormat = MESA_FORMAT_RGB565;
+ else if (mesaVis->redBits == 10)
+ rgbFormat = MESA_FORMAT_ARGB2101010;
else if (mesaVis->sRGBCapable)
rgbFormat = MESA_FORMAT_SARGB8;
else if (mesaVis->alphaBits == 0)
{
static const gl_format formats[] = {
MESA_FORMAT_RGB565,
- MESA_FORMAT_ARGB8888
+ MESA_FORMAT_ARGB8888,
+ MESA_FORMAT_ARGB2101010
};
/* GLX_SWAP_COPY_OML is not supported due to page flipping. */