diff options
author | Kenneth Graunke <[email protected]> | 2011-04-09 00:53:46 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-05-17 23:33:00 -0700 |
commit | d58400eb4a2605640267436f63d9e856fb3c1f96 (patch) | |
tree | b293731a04c4966761828e92ed0a1dc305ae8f5c /src/mesa/drivers/dri | |
parent | 8c8985bdd714f43a96ce922a7c0284d50aec3d1a (diff) |
i965: Emit extra 0's in 3DSTATE_MULTISAMPLE on Ivybridge.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_misc_state.c | 7 |
1 files 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 ed6a09d861b..cb2814b6eff 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); |