glsl: Don't allow unnamed interface blocks to redeclare variables.
authorPaul Berry <stereotype441@gmail.com>
Fri, 27 Sep 2013 21:18:09 +0000 (14:18 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 Oct 2013 21:27:08 +0000 (14:27 -0700)
commit9bb60a155fbbee70113c8742e3157a371ac8c586
tree642e0e122f9075cf607561ff29a75c17a9940083
parent1838df97a28cf859f20d6535c00509574b200152
glsl: Don't allow unnamed interface blocks to redeclare variables.

Note: some limited amount of redeclaration is actually allowed,
provided the shader is redeclaring the built-in gl_PerVertex interface
block.  Support for this will be added in future patches.

Fixes piglit tests
spec/glsl-1.50/compiler/unnamed-interface-block-elem-conflicts-with-prev-{block-elem,global}.vert.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp