glsl: implement shader sampler validation
authorBrian Paul <brianp@vmware.com>
Tue, 25 Aug 2009 23:42:47 +0000 (17:42 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Aug 2009 23:46:10 +0000 (17:46 -0600)
commitc90fca3da41785dc19948637aeaec8b61e535b1a
tree718e6deef113e5a8d001d5ea83995e9bf4064f1b
parent2050baba9692600da7038dd18cbfee794caf4bf4
glsl: implement shader sampler validation

Shader validation should fail if there are two samplers of different types
which reference the same texture unit.  For example, if a cubemap sampler
and a 2D sampler both reference texture unit 0, that's invalid.
src/mesa/shader/shader_api.c
src/mesa/shader/shader_api.h