Mesa (master): i965/gen7: Fix the length of the MULTISAMPLE 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: a7750c9fb5db9d76318c35a901f5359bf586cddf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7750c9fb5db9d76318c35a901f5359bf586cddf

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

i965/gen7: Fix the length of the MULTISAMPLE 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/gen6_hiz.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen6_hiz.c b/src/mesa/drivers/dri/i965/gen6_hiz.c
index 4a82d3d..a86c147 100644
--- a/src/mesa/drivers/dri/i965/gen6_hiz.c
+++ b/src/mesa/drivers/dri/i965/gen6_hiz.c
@@ -101,7 +101,7 @@ gen6_hiz_emit_batch_head(struct brw_context *brw)
       int length = intel->gen == 7 ? 4 : 3;
 
       BEGIN_BATCH(length);
-      OUT_BATCH(_3DSTATE_MULTISAMPLE << 16 | (3 - 2));
+      OUT_BATCH(_3DSTATE_MULTISAMPLE << 16 | (length - 2));
       OUT_BATCH(MS_PIXEL_LOCATION_CENTER |
                 MS_NUMSAMPLES_1);
       OUT_BATCH(0);




More information about the mesa-commit mailing list