From: Eric Anholt Date: Wed, 8 Feb 2012 23:12:56 +0000 (-0800) Subject: i965/gen7: Fix the length of the MULTISAMPLE state packet in the HiZ op. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7750c9fb5db9d76318c35a901f5359bf586cddf;p=mesa.git i965/gen7: Fix the length of the MULTISAMPLE state packet in the HiZ op. Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace --- 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);