glsl: Don't allow invalid identifiers as interface block names.
authorPaul Berry <stereotype441@gmail.com>
Sat, 28 Sep 2013 00:35:27 +0000 (17:35 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 Oct 2013 21:27:10 +0000 (14:27 -0700)
commitf2dd3a04ce3bef550eca7893a1e6907cf8e43bc2
tree7ab309ad1c821104a2d245cb9a0d5f0c5805ea8b
parent9bb60a155fbbee70113c8742e3157a371ac8c586
glsl: Don't allow invalid identifiers as interface block names.

Note: we need to make an exception for the gl_PerVertex interface
block, since this is allowed to be redeclared.  Future patches will
make redeclaration of gl_PerVertex work properly.

Fixes piglit test
spec/glsl-1.50/compiler/interface-block-name-uses-gl-prefix.vert.

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