From f7cbd80028247b83ca6835a3f68b8d5bd28b6f70 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Tue, 10 Jan 2012 16:31:39 -0800 Subject: [PATCH] i965/gen7: Fix batch length for 3DSTATE_HIER_DEPTH_BUFFER Change from 5 to 3. Signed-off-by: Chad Versace --- src/mesa/drivers/dri/i965/gen7_misc_state.c | 4 ++-- 1 file 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, -- 2.30.2