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

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
Eric Anholt 2012-02-08 15:12:56 -08:00
parent cdcfaa64e3
commit a7750c9fb5

View file

@ -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);