Mesa (master): i965: Don't set stats_wm in the WM program key on Gen6+.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Aug 27 21:24:58 UTC 2012
Module: Mesa
Branch: master
Commit: 6cc14c2493bb6957f2581671020809e90a8d8643
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6cc14c2493bb6957f2581671020809e90a8d8643
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Aug 26 00:47:44 2012 -0700
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 <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/mesa/drivers/dri/i965/brw_wm.c | 4 +++-
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 8b7d069..9d96961 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];
More information about the mesa-commit
mailing list