i965: Add a comment about the state flag for sRGBEnabled.
authorEric Anholt <eric@anholt.net>
Mon, 23 Apr 2012 16:46:15 +0000 (09:46 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 May 2012 21:00:32 +0000 (14:00 -0700)
I thought this might be _NEW_COLOR, but it isn't.

src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c

index 8983195d7d0d21911430851833830eb205dabe1a..0bb9414ed588f13c033e71446a2c6a944cb44a81 100644 (file)
@@ -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
index cbccd2b852d6b52d6dd1e3dec0673f5c84a8f6a9..8f62c040b6a94fc0aa3f704b93a43f2da231c090 100644 (file)
@@ -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