st/mesa: determine states used or affected by shaders at compile time
authorMarek Olšák <marek.olsak@amd.com>
Tue, 2 Aug 2016 14:40:50 +0000 (16:40 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 12 Aug 2016 16:49:24 +0000 (18:49 +0200)
commit8c1775c14caf934bf56e9511099033477853d568
tree30b8e853bb6a96033b13f6b4f03b748d20c23e9b
parenta7d33315a76efaa8943dbe439f5538ce6d76ff41
st/mesa: determine states used or affected by shaders at compile time

At compile time, each shader determines which ST_NEW flags should be set
at shader bind time.

This just sets the new field for all shaders. The next commit will use it.

v2: small code unification

Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1)
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h