i965/fs: Pass usage of depth, W, and sample mask through prog_data
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Feb 2016 05:27:57 +0000 (21:27 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Feb 2016 23:07:20 +0000 (15:07 -0800)
commit56eb9c44adfa38f776689dd1a1bc42fe55c15dd8
tree24c2e19e6966cfd60d86a4b10d120d60e209ba60
parentae3543950c93ec4ac179013cb1c7baaf6f5ef4a7
i965/fs: Pass usage of depth, W, and sample mask through prog_data

We really need to stop pulling information directly out of shaders for
state setup.  For one thing, if we want any sort of an on-disk shader
cache, having all of this metadata in one place is going to be crucial.
Also, passing it all through prog_data cleans up the compiler <-> state
setup API substantially.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_compiler.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_wm_iz.cpp
src/mesa/drivers/dri/i965/brw_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c
src/mesa/drivers/dri/i965/gen8_ps_state.c