Again, NVIDIA supports this on every fbconfig, Mesa alternates it on and
off for some reason but only on some drivers, and in particular llvmpipe
doesn't try to create sRGB-ful fbconfigs. Nerf it out of the fbconfig.
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1648>
}
break;
+ case __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE:
+ if (!scalarEqual(config, attrib, value)) {
+ static int warned;
+ if (!warned) {
+ dri_message(_LOADER_DEBUG,
+ "Disabling server's sRGB support\n");
+ warned = 1;
+ }
+ config->sRGBCapable = 0;
+ }
+ break;
+
default:
if (!scalarEqual(config, attrib, value))
return GL_FALSE;