diff options
author | Paul Berry <[email protected]> | 2013-10-02 11:21:04 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-10-10 14:27:31 -0700 |
commit | 79f515251a765afd959d9260574fd855e1154afa (patch) | |
tree | c228a055ff373520cf380dca3153c469412a1f97 /src/mesa/x86-64/x86-64.h | |
parent | 3c83c96dcd1be26e24c07a3dff5df1ef84974901 (diff) |
glsl: Error check redeclarations of gl_PerVertex.
This patch verifies that:
- The gl_PerVertex input interface block may only be redeclared in a
geometry shader, and that it may only be redeclared as gl_in[].
- The gl_PerVertex output interface block may only be redeclared in a
vertex or geometry shader, and that it may only be redeclared as a
non-array without an interface name.
- gl_PerVertex may not be redeclared as any other type of interface
block (i.e. as a uniform interface block).
As a side-effect, the code now keeps track of what the previous
declaration of gl_PerVertex was--this will be needed in future
patches.
Fixes piglit tests:
- spec/glsl-1.50/compiler/gs-redeclares-pervertex-in-with-incorrect-name.geom
- spec/glsl-1.50/compiler/gs-redeclares-pervertex-out-as-array.geom
- spec/glsl-1.50/compiler/gs-redeclares-pervertex-out-with-instance-name.geom
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/x86-64/x86-64.h')
0 files changed, 0 insertions, 0 deletions