summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-02-08 15:12:56 -0800
committerEric Anholt <[email protected]>2012-02-09 19:03:19 -0800
commita7750c9fb5db9d76318c35a901f5359bf586cddf (patch)
tree16ac432bf3b80a83659dc8dd43f27ed5da44c76f /src
parentcdcfaa64e3a237517a1e1c913e8ea18d8bc5fa63 (diff)
i965/gen7: Fix the length of the MULTISAMPLE state packet in the HiZ op.
Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/gen6_hiz.c2
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 4a82d3dcfaf..a86c14717b1 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);