summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-05-23 11:55:39 -0700
committerKenneth Graunke <[email protected]>2011-06-08 14:31:12 -0700
commita00ca90815d8df3c087c49a2a7685f739d2d5c0a (patch)
tree3a889f1e4d098a0c960d9cca59b56f9fc6a4ffc2 /src
parentbd265201da44093ce9c583fe04aa7db94f61453c (diff)
i965/gen7: gen7_emit_depthbuffer needs the _NEW_DEPTH dirty bit.
For ctx->Depth.Mask. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_misc_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c
index 8d5fc70f098..0364b61b75b 100644
--- a/src/mesa/drivers/dri/i965/gen7_misc_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c
@@ -89,6 +89,7 @@ static void emit_depthbuffer(struct brw_context *brw)
assert(region->tiling == I915_TILING_Y);
+ /* _NEW_DEPTH */
BEGIN_BATCH(7);
OUT_BATCH(GEN7_3DSTATE_DEPTH_BUFFER << 16 | (7 - 2));
OUT_BATCH(((region->pitch * region->cpp) - 1) |
@@ -133,7 +134,7 @@ static void emit_depthbuffer(struct brw_context *brw)
*/
const struct brw_tracked_state gen7_depthbuffer = {
.dirty = {
- .mesa = _NEW_BUFFERS,
+ .mesa = (_NEW_BUFFERS | _NEW_DEPTH),
.brw = BRW_NEW_BATCH,
.cache = 0,
},