glsl: Don't allow gl_PerVertex to be redeclared after it's been used.
authorPaul Berry <stereotype441@gmail.com>
Tue, 1 Oct 2013 22:48:07 +0000 (15:48 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 Oct 2013 21:27:40 +0000 (14:27 -0700)
commit8cb9cce0400362e913ad89f4ae981b8baf86bb57
tree53abbad7646ead1a555018e4fdd3d78e81752f82
parent84b9fa83a07552ff0c0f7b2ea6386377334289ef
glsl: Don't allow gl_PerVertex to be redeclared after it's been used.

Fixes piglit tests:
- spec/glsl-1.50/compiler/gs-redeclares-pervertex-in-after-other-usage.geom
- spec/glsl-1.50/compiler/gs-redeclares-pervertex-out-after-other-usage.geom
- spec/glsl-1.50/compiler/gs-redeclares-pervertex-out-after-usage.geom
- spec/glsl-1.50/compiler/vs-redeclares-pervertex-out-after-other-usage.vert
- spec/glsl-1.50/compiler/vs-redeclares-pervertex-out-after-usage.vert

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