Mesa (master): i965/gen7: Fix the length of the DS state packet in the HiZ op.

Eric Anholt anholt at kemper.freedesktop.org
Fri Feb 10 05:41:19 UTC 2012


Module: Mesa
Branch: master
Commit: cdcfaa64e3a237517a1e1c913e8ea18d8bc5fa63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdcfaa64e3a237517a1e1c913e8ea18d8bc5fa63

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Feb  8 15:10:12 2012 -0800

i965/gen7: Fix the length of the DS state packet in the HiZ op.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

---

 src/mesa/drivers/dri/i965/gen7_hiz.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen7_hiz.c b/src/mesa/drivers/dri/i965/gen7_hiz.c
index a36f1cb..34e51ab 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);




More information about the mesa-commit mailing list