Module: Mesa Branch: master Commit: f7cbd80028247b83ca6835a3f68b8d5bd28b6f70 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f7cbd80028247b83ca6835a3f68b8d5bd28b6f70
Author: Chad Versace <chad.vers...@linux.intel.com> Date: Tue Jan 10 16:31:39 2012 -0800 i965/gen7: Fix batch length for 3DSTATE_HIER_DEPTH_BUFFER Change from 5 to 3. Signed-off-by: Chad Versace <chad.vers...@linux.intel.com> --- 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 f287485..d7a3dae 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, _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit