summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-08-26 00:47:44 -0700
committerKenneth Graunke <[email protected]>2012-08-27 14:23:40 -0700
commit6cc14c2493bb6957f2581671020809e90a8d8643 (patch)
tree662c8d78e95c13d0bb5f3f59d4680a8987c94b67 /src/mesa/drivers
parentb6b1fc1261e86e2aa03ae8d2dd587c88a207354f (diff)
i965: Don't set stats_wm in the WM program key on Gen6+.
It's only needed for Gen4/5 IZ lookup workarounds. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 8b7d0693a35..9d969618042 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -587,7 +587,9 @@ static void brw_wm_populate_key( struct brw_context *brw,
}
key->line_aa = line_aa;
- key->stats_wm = brw->intel.stats_wm;
+
+ if (intel->gen < 6)
+ key->stats_wm = brw->intel.stats_wm;
/* BRW_NEW_WM_INPUT_DIMENSIONS */
key->proj_attrib_mask = brw->wm.input_size_masks[4-1];