i965/gen7: Fix the length of the DS state packet in the HiZ op.
authorEric Anholt <eric@anholt.net>
Wed, 8 Feb 2012 23:10:12 +0000 (15:10 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 10 Feb 2012 03:03:18 +0000 (19:03 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/gen7_hiz.c

index a36f1cb3f38f601682f225d122bcdc26f7f9517f..34e51ab4b5027183a43cbb3582a4595bd81cc277 100644 (file)
@@ -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);