From: Eric Anholt Date: Mon, 23 Apr 2012 16:46:15 +0000 (-0700) Subject: i965: Add a comment about the state flag for sRGBEnabled. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcd57280ae687d6b7c11cb8ac8fb8cc4f01a646d;p=mesa.git i965: Add a comment about the state flag for sRGBEnabled. I thought this might be _NEW_COLOR, but it isn't. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 8983195d7d0..0bb9414ed58 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -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 diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c index cbccd2b852d..8f62c040b6a 100644 --- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c @@ -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