glsl: don't validate binding when its not needed
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 13 Nov 2015 00:41:52 +0000 (11:41 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Tue, 17 Nov 2015 20:30:19 +0000 (07:30 +1100)
commit03bbddd139fc3e543cb3aedf64236808ca20eeca
tree923a9ebfdedc7b7a26c1ddb465e79dec7868d9f8
parent4f4ca6b90ac33ad84bc469f58df1682e93ab3733
glsl: don't validate binding when its not needed

Checking that the flag has been set is all the validation thats
needed here.

Also not calling the binding validation function will make things
much simpler when adding compile time constant support as we
won't need to resolve the binding value.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/glsl/ast_to_hir.cpp