diff options
author | Chad Versace <[email protected]> | 2012-01-10 16:31:39 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2012-01-10 16:31:52 -0800 |
commit | f7cbd80028247b83ca6835a3f68b8d5bd28b6f70 (patch) | |
tree | ad0ec5ba727243bf6cca0da8647271ff9a442656 | |
parent | 06ad9adcb031b97af2ce9cd22b919b8befcec43b (diff) |
i965/gen7: Fix batch length for 3DSTATE_HIER_DEPTH_BUFFER
Change from 5 to 3.
Signed-off-by: Chad Versace <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_misc_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c index f28748597a1..d7a3dae571a 100644 --- a/src/mesa/drivers/dri/i965/gen7_misc_state.c +++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c @@ -118,13 +118,13 @@ static void emit_depthbuffer(struct brw_context *brw) } if (hiz_mt == NULL) { - BEGIN_BATCH(5); + BEGIN_BATCH(3); OUT_BATCH(GEN7_3DSTATE_HIER_DEPTH_BUFFER << 16 | (3 - 2)); OUT_BATCH(0); OUT_BATCH(0); ADVANCE_BATCH(); } else { - BEGIN_BATCH(5); + BEGIN_BATCH(3); OUT_BATCH(GEN7_3DSTATE_HIER_DEPTH_BUFFER << 16 | (3 - 2)); OUT_BATCH(hiz_mt->region->pitch * hiz_mt->region->cpp - 1); OUT_RELOC(hiz_mt->region->bo, |