i965: Add missing _NEW_BUFFERS dirty bit to Gen6+ DEPTH_STENCIL atoms.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 7 Jan 2012 23:58:53 +0000 (15:58 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jan 2012 05:45:08 +0000 (21:45 -0800)
This brings the dirty bits in line with the comments.

This does /not/ need to be cherry-picked to stable branches because the
access requiring _NEW_BUFFERS was added in master as part of HiZ.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen6_depthstencil.c

index c601a8fb13e29fc2ee2c6d7847431b2fee31e3fe..d9f686a259e0a9925151d668b1bbb81af1fe82ad 100644 (file)
@@ -97,7 +97,7 @@ gen6_upload_depth_stencil_state(struct brw_context *brw)
 
 const struct brw_tracked_state gen6_depth_stencil_state = {
    .dirty = {
-      .mesa = _NEW_DEPTH | _NEW_STENCIL,
+      .mesa = _NEW_DEPTH | _NEW_STENCIL | _NEW_BUFFERS,
       .brw  = (BRW_NEW_BATCH |
               BRW_NEW_HIZ),
       .cache = 0,