From cdcfaa64e3a237517a1e1c913e8ea18d8bc5fa63 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 8 Feb 2012 15:10:12 -0800 Subject: [PATCH] i965/gen7: Fix the length of the DS state packet in the HiZ op. Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace --- src/mesa/drivers/dri/i965/gen7_hiz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen7_hiz.c b/src/mesa/drivers/dri/i965/gen7_hiz.c index a36f1cb3f38..34e51ab4b50 100644 --- a/src/mesa/drivers/dri/i965/gen7_hiz.c +++ b/src/mesa/drivers/dri/i965/gen7_hiz.c @@ -175,7 +175,7 @@ gen7_hiz_exec(struct intel_context *intel, */ { BEGIN_BATCH(6); - OUT_BATCH(_3DSTATE_DS << 16 | (6)); + OUT_BATCH(_3DSTATE_DS << 16 | (6 - 2)); OUT_BATCH(0); OUT_BATCH(0); OUT_BATCH(0); -- 2.30.2