From: Kenneth Graunke Date: Sun, 26 Aug 2012 07:47:44 +0000 (-0700) Subject: i965: Don't set stats_wm in the WM program key on Gen6+. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cc14c2493bb6957f2581671020809e90a8d8643;p=mesa.git 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 Reviewed-by: Eric Anholt --- 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];