From d58400eb4a2605640267436f63d9e856fb3c1f96 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 9 Apr 2011 00:53:46 -0700 Subject: [PATCH] i965: Emit extra 0's in 3DSTATE_MULTISAMPLE on Ivybridge. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_misc_state.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.7.4