i965: Add a comment about the state flag for sRGBEnabled.

I thought this might be _NEW_COLOR, but it isn't.
This commit is contained in:
Eric Anholt
2012-04-23 09:46:15 -07:00
parent b7406404ab
commit fcd57280ae
2 changed files with 10 additions and 4 deletions
@@ -961,8 +961,11 @@ brw_update_renderbuffer_surface(struct brw_context *brw,
switch (rb_format) {
case MESA_FORMAT_SARGB8:
/* without GL_EXT_framebuffer_sRGB we shouldn't bind sRGB
surfaces to the blend/update as sRGB */
/* _NEW_BUFFERS
*
* Without GL_EXT_framebuffer_sRGB we shouldn't bind sRGB surfaces to the
* blend/update as sRGB.
*/
if (ctx->Color.sRGBEnabled)
format = brw_format_for_mesa_format(rb_format);
else
@@ -289,8 +289,11 @@ gen7_update_renderbuffer_surface(struct brw_context *brw,
switch (rb_format) {
case MESA_FORMAT_SARGB8:
/* without GL_EXT_framebuffer_sRGB we shouldn't bind sRGB
surfaces to the blend/update as sRGB */
/* _NEW_BUFFERS
*
* Without GL_EXT_framebuffer_sRGB we shouldn't bind sRGB surfaces to the
* blend/update as sRGB.
*/
if (ctx->Color.sRGBEnabled)
surf->ss0.surface_format = brw_format_for_mesa_format(rb_format);
else