glslang: Bug 13724: ES global initializers must be constant.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30990 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2015-04-30 03:22:41 +00:00
parent 09388459a8
commit 968c8f8e78
9 changed files with 299 additions and 206 deletions

View File

@@ -6,8 +6,8 @@ ERROR: 0:24: 'location' : not supported for this version or the enabled extensio
ERROR: 0:24: 'location qualifier on input' : not supported for this version or the enabled extensions
ERROR: 0:26: 'location' : not supported for this version or the enabled extensions
ERROR: 0:26: 'location qualifier on output' : not supported for this version or the enabled extensions
ERROR: 0:38: 'assign' : l-value required "v" (can't modify shader input)
ERROR: 0:38: 'out' : Non-L-value cannot be passed for 'out' or 'inout' parameters.
ERROR: 0:40: 'assign' : l-value required "v" (can't modify shader input)
ERROR: 0:40: 'out' : Non-L-value cannot be passed for 'out' or 'inout' parameters.
ERROR: 8 compilation errors. No code generated.
@@ -30,45 +30,75 @@ ERROR: node is still EOpNull!
0:22 'patch' (global float)
0:22 Constant:
0:22 3.100000
0:36 Function Definition: foo( (global void)
0:36 Function Parameters:
0:38 Sequence
0:38 Sequence
0:38 move second child to first child (temp 2-component vector of float)
0:38 'r1' (temp 2-component vector of float)
0:38 modf (global 2-component vector of float)
0:38 vector swizzle (temp 2-component vector of float)
0:38 'v' (smooth in 4-component vector of float)
0:38 Sequence
0:38 Constant:
0:38 0 (const int)
0:38 Constant:
0:38 1 (const int)
0:38 vector swizzle (temp 2-component vector of float)
0:38 'v' (smooth in 4-component vector of float)
0:38 Sequence
0:38 Constant:
0:38 2 (const int)
0:38 Constant:
0:38 3 (const int)
0:39 Sequence
0:39 move second child to first child (temp 2-component vector of float)
0:39 'r2' (temp 2-component vector of float)
0:39 modf (global 2-component vector of float)
0:39 vector swizzle (temp 2-component vector of float)
0:39 'o' (out 4-component vector of float)
0:39 Sequence
0:39 Constant:
0:39 0 (const int)
0:39 Constant:
0:39 1 (const int)
0:39 vector swizzle (temp 2-component vector of float)
0:39 'o' (out 4-component vector of float)
0:39 Sequence
0:39 Constant:
0:39 2 (const int)
0:39 Constant:
0:39 3 (const int)
0:38 Function Definition: foo( (global void)
0:38 Function Parameters:
0:40 Sequence
0:40 Sequence
0:40 move second child to first child (temp 2-component vector of float)
0:40 'r1' (temp 2-component vector of float)
0:40 modf (global 2-component vector of float)
0:40 vector swizzle (temp 2-component vector of float)
0:40 'v' (smooth in 4-component vector of float)
0:40 Sequence
0:40 Constant:
0:40 0 (const int)
0:40 Constant:
0:40 1 (const int)
0:40 vector swizzle (temp 2-component vector of float)
0:40 'v' (smooth in 4-component vector of float)
0:40 Sequence
0:40 Constant:
0:40 2 (const int)
0:40 Constant:
0:40 3 (const int)
0:41 Sequence
0:41 move second child to first child (temp 2-component vector of float)
0:41 'r2' (temp 2-component vector of float)
0:41 modf (global 2-component vector of float)
0:41 vector swizzle (temp 2-component vector of float)
0:41 'o' (out 4-component vector of float)
0:41 Sequence
0:41 Constant:
0:41 0 (const int)
0:41 Constant:
0:41 1 (const int)
0:41 vector swizzle (temp 2-component vector of float)
0:41 'o' (out 4-component vector of float)
0:41 Sequence
0:41 Constant:
0:41 2 (const int)
0:41 Constant:
0:41 3 (const int)
0:42 move second child to first child (temp float)
0:42 direct index (temp float)
0:42 'o' (out 4-component vector of float)
0:42 Constant:
0:42 2 (const int)
0:42 Function Call: fooi( (global float)
0:47 Sequence
0:47 move second child to first child (temp float)
0:47 'i1' (global float)
0:47 Test condition and select (temp float)
0:47 Condition
0:47 'gl_FrontFacing' (gl_FrontFacing bool)
0:47 true case
0:47 Constant:
0:47 -2.000000
0:47 false case
0:47 Constant:
0:47 2.000000
0:48 Sequence
0:48 move second child to first child (temp float)
0:48 'i2' (global float)
0:48 Constant:
0:48 102.000000
0:50 Function Definition: fooi( (global float)
0:50 Function Parameters:
0:52 Sequence
0:52 Branch: Return with expression
0:52 add (temp float)
0:52 'i1' (global float)
0:52 'i2' (global float)
0:? Linker Objects
0:? 'v' (smooth in 4-component vector of float)
0:? 'i' (smooth in 4-component vector of float)
@@ -81,6 +111,8 @@ ERROR: node is still EOpNull!
0:? 'factorBad' (layout(location=3 ) out 4-component vector of float)
0:? 'factor' (layout(location=5 ) out 4-component vector of float)
0:? 'vl2' (layout(location=4 ) smooth in 4-component vector of float)
0:? 'i1' (global float)
0:? 'i2' (global float)
Linked fragment stage:
@@ -105,45 +137,75 @@ ERROR: node is still EOpNull!
0:22 'patch' (global float)
0:22 Constant:
0:22 3.100000
0:36 Function Definition: foo( (global void)
0:36 Function Parameters:
0:38 Sequence
0:38 Sequence
0:38 move second child to first child (temp 2-component vector of float)
0:38 'r1' (temp 2-component vector of float)
0:38 modf (global 2-component vector of float)
0:38 vector swizzle (temp 2-component vector of float)
0:38 'v' (smooth in 4-component vector of float)
0:38 Sequence
0:38 Constant:
0:38 0 (const int)
0:38 Constant:
0:38 1 (const int)
0:38 vector swizzle (temp 2-component vector of float)
0:38 'v' (smooth in 4-component vector of float)
0:38 Sequence
0:38 Constant:
0:38 2 (const int)
0:38 Constant:
0:38 3 (const int)
0:39 Sequence
0:39 move second child to first child (temp 2-component vector of float)
0:39 'r2' (temp 2-component vector of float)
0:39 modf (global 2-component vector of float)
0:39 vector swizzle (temp 2-component vector of float)
0:39 'o' (out 4-component vector of float)
0:39 Sequence
0:39 Constant:
0:39 0 (const int)
0:39 Constant:
0:39 1 (const int)
0:39 vector swizzle (temp 2-component vector of float)
0:39 'o' (out 4-component vector of float)
0:39 Sequence
0:39 Constant:
0:39 2 (const int)
0:39 Constant:
0:39 3 (const int)
0:38 Function Definition: foo( (global void)
0:38 Function Parameters:
0:40 Sequence
0:40 Sequence
0:40 move second child to first child (temp 2-component vector of float)
0:40 'r1' (temp 2-component vector of float)
0:40 modf (global 2-component vector of float)
0:40 vector swizzle (temp 2-component vector of float)
0:40 'v' (smooth in 4-component vector of float)
0:40 Sequence
0:40 Constant:
0:40 0 (const int)
0:40 Constant:
0:40 1 (const int)
0:40 vector swizzle (temp 2-component vector of float)
0:40 'v' (smooth in 4-component vector of float)
0:40 Sequence
0:40 Constant:
0:40 2 (const int)
0:40 Constant:
0:40 3 (const int)
0:41 Sequence
0:41 move second child to first child (temp 2-component vector of float)
0:41 'r2' (temp 2-component vector of float)
0:41 modf (global 2-component vector of float)
0:41 vector swizzle (temp 2-component vector of float)
0:41 'o' (out 4-component vector of float)
0:41 Sequence
0:41 Constant:
0:41 0 (const int)
0:41 Constant:
0:41 1 (const int)
0:41 vector swizzle (temp 2-component vector of float)
0:41 'o' (out 4-component vector of float)
0:41 Sequence
0:41 Constant:
0:41 2 (const int)
0:41 Constant:
0:41 3 (const int)
0:42 move second child to first child (temp float)
0:42 direct index (temp float)
0:42 'o' (out 4-component vector of float)
0:42 Constant:
0:42 2 (const int)
0:42 Function Call: fooi( (global float)
0:47 Sequence
0:47 move second child to first child (temp float)
0:47 'i1' (global float)
0:47 Test condition and select (temp float)
0:47 Condition
0:47 'gl_FrontFacing' (gl_FrontFacing bool)
0:47 true case
0:47 Constant:
0:47 -2.000000
0:47 false case
0:47 Constant:
0:47 2.000000
0:48 Sequence
0:48 move second child to first child (temp float)
0:48 'i2' (global float)
0:48 Constant:
0:48 102.000000
0:50 Function Definition: fooi( (global float)
0:50 Function Parameters:
0:52 Sequence
0:52 Branch: Return with expression
0:52 add (temp float)
0:52 'i1' (global float)
0:52 'i2' (global float)
0:? Linker Objects
0:? 'v' (smooth in 4-component vector of float)
0:? 'i' (smooth in 4-component vector of float)
@@ -156,4 +218,6 @@ ERROR: node is still EOpNull!
0:? 'factorBad' (layout(location=3 ) out 4-component vector of float)
0:? 'factor' (layout(location=5 ) out 4-component vector of float)
0:? 'vl2' (layout(location=4 ) smooth in 4-component vector of float)
0:? 'i1' (global float)
0:? 'i2' (global float)