i965: Remove _NEW_DEPTH state flagging on drawbuffers change.
authorEric Anholt <eric@anholt.net>
Thu, 20 Jun 2013 16:28:53 +0000 (09:28 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 02:19:21 +0000 (19:19 -0700)
Of the places noting a _NEW_DEPTH dependency, all were already checking
for _NEW_BUFFERS if appropriate.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/i965/gen7_misc_state.c

index 2c71c087196969176d253a810507827f9ad314bd..99d661f97b8057df18530eb3483e03cdfefdf7ac 100644 (file)
@@ -130,8 +130,6 @@ brw_update_draw_buffer(struct intel_context *intel)
       return;
    }
 
-   intel->NewGLState |= _NEW_DEPTH;
-
    /* The driver uses this in places that need to look up
     * renderbuffers' buffer objects.
     */
index 12b752cc846e94df83a1b2e9cf4cfb4f4a9ffecf..539fc321fbb7e35fcde41cf29e733ee06d29a494 100644 (file)
@@ -44,7 +44,7 @@ gen7_emit_depth_stencil_hiz(struct brw_context *brw,
 
    intel_emit_depth_stall_flushes(intel);
 
-   /* _NEW_DEPTH, _NEW_STENCIL */
+   /* _NEW_DEPTH, _NEW_STENCIL, _NEW_BUFFERS */
    BEGIN_BATCH(7);
    OUT_BATCH(GEN7_3DSTATE_DEPTH_BUFFER << 16 | (7 - 2));
    OUT_BATCH((depth_mt ? depth_mt->region->pitch - 1 : 0) |