Allow the pre-150 built-in redeclarations when using SSO: gl_Position, gl_PointSize, gl_ClipVertex, and gl_FogFragCoord.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26399 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2014-04-24 22:38:50 +00:00
parent 040b8ca9d4
commit f000058fd9
6 changed files with 84 additions and 13 deletions

View file

@ -1,7 +1,16 @@
140.vert
ERROR: 0:23: 'gl_Position' : identifiers starting with "gl_" are reserved
ERROR: 0:28: 'redeclaration' : cannot change storage, memory, or auxiliary qualification of gl_Position
ERROR: 0:28: 'redeclaration' : cannot change interpolation qualification of gl_Position
ERROR: 0:29: 'redeclaration' : cannot change the type of gl_Position
ERROR: 0:32: 'gl_ClipVertex' : cannot redeclare after use
ERROR: 0:33: 'gl_FogFragCoord' : cannot redeclare after use
ERROR: 6 compilation errors. No code generated.
Shader version: 140
0:? Sequence
Requested GL_ARB_separate_shader_objects
ERROR: node is still EOpNull!
0:9 Function Definition: main( (void)
0:9 Function Parameters:
0:11 Sequence
@ -41,6 +50,13 @@ Shader version: 140
0:? 'sbuf' (uniform isamplerBuffer)
0:? 'anon@0' (layout(column_major std140 ) uniform block{layout(column_major std140 offset=0 ) uniform int anonMem})
0:? 'gl_TexCoord' (smooth out implicitly-sized array of 4-component vector of float)
0:? 'gl_Position' (smooth out 4-component vector of float)
0:? 'gl_PointSize' (gl_PointSize float)
0:? 'gl_PointSize' (gl_PointSize float)
0:? 'gl_ClipVertex' (gl_ClipVertex 4-component vector of float)
0:? 'gl_ClipVertex' (gl_ClipVertex 4-component vector of float)
0:? 'gl_FogFragCoord' (smooth out float)
0:? 'gl_FogFragCoord' (smooth out float)
0:? 'gl_VertexID' (gl_VertexId int)
0:? 'gl_InstanceID' (gl_InstanceId int)
@ -49,7 +65,8 @@ Linked vertex stage:
Shader version: 140
0:? Sequence
Requested GL_ARB_separate_shader_objects
ERROR: node is still EOpNull!
0:9 Function Definition: main( (void)
0:9 Function Parameters:
0:11 Sequence
@ -89,6 +106,13 @@ Shader version: 140
0:? 'sbuf' (uniform isamplerBuffer)
0:? 'anon@0' (layout(column_major std140 ) uniform block{layout(column_major std140 offset=0 ) uniform int anonMem})
0:? 'gl_TexCoord' (smooth out 1-element array of 4-component vector of float)
0:? 'gl_Position' (smooth out 4-component vector of float)
0:? 'gl_PointSize' (gl_PointSize float)
0:? 'gl_PointSize' (gl_PointSize float)
0:? 'gl_ClipVertex' (gl_ClipVertex 4-component vector of float)
0:? 'gl_ClipVertex' (gl_ClipVertex 4-component vector of float)
0:? 'gl_FogFragCoord' (smooth out float)
0:? 'gl_FogFragCoord' (smooth out float)
0:? 'gl_VertexID' (gl_VertexId int)
0:? 'gl_InstanceID' (gl_InstanceId int)