i965/state: Clean up WM/PS state to pull more things out of prog_data
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 10 May 2016 18:17:27 +0000 (11:17 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 14 May 2016 20:34:10 +0000 (13:34 -0700)
commitb0f8768905c84b3aa69a44030d998d1076d77728
tree9294e5cdf785074e86d523da8bdced6089438353
parent712a980adde0b14eee8b4accd02af9b9740091a2
i965/state: Clean up WM/PS state to pull more things out of prog_data

Now that we have a persample_shading bit in prog_data we can reduce the
amount the state setup code needs to be looking at the GL state.  In
particular, it no longer pulls anything directly out of the
gl_fragment_program and no longer depends on NEW_FRAGMENT_PROGRAM.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c
src/mesa/drivers/dri/i965/gen8_ps_state.c