From: Kenneth Graunke Date: Sat, 9 Apr 2011 07:53:46 +0000 (-0700) Subject: i965: Emit extra 0's in 3DSTATE_MULTISAMPLE on Ivybridge. X-Git-Tag: 062012170305~5802 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d58400eb4a2605640267436f63d9e856fb3c1f96;p=profile%2Fivi%2Fmesa.git i965: Emit extra 0's in 3DSTATE_MULTISAMPLE on Ivybridge. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index ed6a09d..cb2814b 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -476,12 +476,15 @@ static void upload_invarient_state( struct brw_context *brw ) if (intel->gen >= 6) { int i; + int len = intel->gen >= 7 ? 4 : 3; - BEGIN_BATCH(3); - OUT_BATCH(_3DSTATE_MULTISAMPLE << 16 | (3 - 2)); + BEGIN_BATCH(len); + OUT_BATCH(_3DSTATE_MULTISAMPLE << 16 | (len - 2)); OUT_BATCH(MS_PIXEL_LOCATION_CENTER | MS_NUMSAMPLES_1); OUT_BATCH(0); /* positions for 4/8-sample */ + if (intel->gen >= 7) + OUT_BATCH(0); ADVANCE_BATCH(); BEGIN_BATCH(2);