[Mesa-dev] [PATCH 0/8] sRGB fixes
ajax at redhat.com
Thu Oct 25 07:37:05 PDT 2012
On Wed, 2012-10-24 at 10:08 -0700, Ian Romanick wrote:
> This series contains a bunch of Mesa and GLX fixes releated to sRGB
> drawables. It should contain all of the work necessary to allow drivers to
> advertise sRGB fbconfigs.
> What is missing is a 9th patch to actually add some sRGB fbconfigs to the
> Intel driver. I haven't done this yet because I haven't decided the right
> way. I don't want to have duplicate sRGB and non-sRGB visuals, but if the
> client-side driver avertises only sRGB and the server-side driver only
> advertises RGB (or vice-versa), you get no visuals.
I don't see why that's true. You don't get sRGB rendering until you've
called glEnable(GL_FRAMEBUFFER_SRGB). Just flag all your fbconfigs as
sRGB-capable. Older libGL looks like it's smart enough to ignore
unknown attribs, and current libGL doesn't look at the sRGB attrib in
Which I think means that #7 might be wrong? The sRGB-ness of the buffer
is a property of the enable state, not the visual.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: This is a digitally signed message part
More information about the mesa-dev