i965: Fix state flag comments on color_buffer_write_enabled() calls.
authorEric Anholt <eric@anholt.net>
Fri, 25 Apr 2014 23:49:46 +0000 (16:49 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 30 Apr 2014 21:33:21 +0000 (14:33 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c
src/mesa/drivers/dri/i965/gen8_blend_state.c

index cbab16d2bf1088a5616ebe2c37a782a05a0ee089..b85c1466c8eeddd0d1b5feeb94abd0d537134a21 100644 (file)
@@ -213,6 +213,7 @@ upload_wm_state(struct brw_context *brw)
        brw->wm.prog_data->uses_omask)
       dw5 |= GEN6_WM_KILL_ENABLE;
 
+   /* _NEW_BUFFERS | _NEW_COLOR */
    if (brw_color_buffer_write_enabled(brw) ||
        dw5 & (GEN6_WM_KILL_ENABLE | GEN6_WM_COMPUTED_DEPTH)) {
       dw5 |= GEN6_WM_DISPATCH_ENABLE;
index 71535a53fa1da35efa521725254d24ad54f911ba..97831dfeb521ffd8bd7dd4d6d9c1df0b129b8260 100644 (file)
@@ -91,7 +91,7 @@ upload_wm_state(struct brw_context *brw)
       dw1 |= GEN7_WM_KILL_ENABLE;
    }
 
-   /* _NEW_BUFFERS */
+   /* _NEW_BUFFERS | _NEW_COLOR */
    if (brw_color_buffer_write_enabled(brw) || writes_depth ||
        dw1 & GEN7_WM_KILL_ENABLE) {
       dw1 |= GEN7_WM_DISPATCH_ENABLE;
index f487fc906ebecc6d1591cc0fdfd7fa0df28ab57a..a02b765c06b290cd52e356c0a5aeebc3bd5f75fe 100644 (file)
@@ -215,6 +215,7 @@ gen8_upload_ps_blend(struct brw_context *brw)
    /* _NEW_BUFFERS */
    struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0];
 
+   /* _NEW_BUFFERS | _NEW_COLOR */
    if (brw_color_buffer_write_enabled(brw))
       dw1 |= GEN8_PS_BLEND_HAS_WRITEABLE_RT;