i965: Make sRGB-capable framebuffers by default.
authorEric Anholt <eric@anholt.net>
Fri, 15 Feb 2013 15:41:42 +0000 (07:41 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 1 Mar 2013 20:10:16 +0000 (12:10 -0800)
commite15c21a957b62ab856ab286e8253dd1151a3386e
treedd86c5d888cad2dd37722e5fe74ad03f2dcb7414
parent973ddc897d48548fe66f739d703d2e3808de04d1
i965: Make sRGB-capable framebuffers by default.

The GLX extension lets you expose visuals that explicitly guarantee you
that the GL_FRAMEBUFFER_SRGB_CAPABLE flag will be set, but we can set
the flag even while the visual doesn't provide the guarantee.  This
appears to be consistent with other implementations, as we've seen
several apps now that don't require an srgb visual and assume sRGB will
work without checking the GL_FRAMEBUFFER_SRGB_CAPABLE flag.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55783
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60633
Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_screen.c