linker: Calculate used samplers and shadow samplers in the linker
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Nov 2011 05:58:50 +0000 (21:58 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 11 Jan 2012 20:51:24 +0000 (12:51 -0800)
commit6c0df75803e1944f82a1468dcca47d23de82ea6b
tree7a908c29bbf66656cb33ac9a431a98536a76aeb5
parent6a992c3288b6f7a5d94172c9ad1908e71e58233e
linker: Calculate used samplers and shadow samplers in the linker

It used to be done in ir_to_mesa, and that was kind of a bad place.

I didn't change st_glsl_to_tgsi because there is some strange stuff
happening in the code that generates glDrawPixels shaders.  It looked
like this would break horribly if I touched anything.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/link_uniforms.cpp
src/mesa/main/mtypes.h
src/mesa/main/uniform_query.cpp
src/mesa/program/ir_to_mesa.cpp