i965: Fix missing CACHE_NEW_WM_PROG in 3DSTATE_PS_EXTRA.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Nov 2014 10:06:11 +0000 (02:06 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Nov 2014 04:24:15 +0000 (20:24 -0800)
commit6a1c1fd503a76438a98ce6eb60be00c1a3bd0992
treea25378ed579a2235d8ee4026b410ad168f05d096
parente928b1e65be6c58e9c5a4dbd413d47093c004a71
i965: Fix missing CACHE_NEW_WM_PROG in 3DSTATE_PS_EXTRA.

brw->wm.prog_data is covered by CACHE_NEW_WM_PROG, not
BRW_NEW_FRAGMENT_PROGRAM.  So, we should listen to it.

However, I believe that BRW_NEW_FRAGMENT_PROGRAM is sufficient to cover
all the necessary cases - CACHE_NEW_WM_PROG happens in a subset of
cases.  So, the code being wrong shouldn't have triggered bugs.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/gen8_ps_state.c