glslang AST output: include global vs. temp (local) in the printed output. This only effects test results, but a future check-in is going to fix some globals.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30973 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -16,7 +16,7 @@ ERROR: 12 compilation errors. No code generated.
|
||||
|
||||
Shader version: 100
|
||||
ERROR: node is still EOpNull!
|
||||
0:3 Function Definition: f(i1;i1;i1; (highp int)
|
||||
0:3 Function Definition: f(i1;i1;i1; (global highp int)
|
||||
0:3 Function Parameters:
|
||||
0:3 'a' (in highp int)
|
||||
0:3 'b' (in highp int)
|
||||
@@ -24,104 +24,104 @@ ERROR: node is still EOpNull!
|
||||
0:? Sequence
|
||||
0:8 Sequence
|
||||
0:8 Sequence
|
||||
0:8 move second child to first child (highp float)
|
||||
0:8 'a' (highp float)
|
||||
0:8 add (highp float)
|
||||
0:8 Convert int to float (highp float)
|
||||
0:8 move second child to first child (temp highp float)
|
||||
0:8 'a' (temp highp float)
|
||||
0:8 add (temp highp float)
|
||||
0:8 Convert int to float (temp highp float)
|
||||
0:8 'a' (in highp int)
|
||||
0:8 Constant:
|
||||
0:8 1.000000
|
||||
0:11 Branch: Return with expression
|
||||
0:11 'a' (in highp int)
|
||||
0:25 Function Definition: cos(f1; (highp float)
|
||||
0:25 Function Definition: cos(f1; (global highp float)
|
||||
0:25 Function Parameters:
|
||||
0:25 'x' (in highp float)
|
||||
0:27 Sequence
|
||||
0:27 Branch: Return with expression
|
||||
0:27 Constant:
|
||||
0:27 1.000000
|
||||
0:29 Function Definition: radians(b1; (bool)
|
||||
0:29 Function Definition: radians(b1; (global bool)
|
||||
0:29 Function Parameters:
|
||||
0:29 'x' (in bool)
|
||||
0:31 Sequence
|
||||
0:31 Branch: Return with expression
|
||||
0:31 Constant:
|
||||
0:31 true (const bool)
|
||||
0:36 Function Definition: main( (void)
|
||||
0:36 Function Definition: main( (global void)
|
||||
0:36 Function Parameters:
|
||||
0:? Sequence
|
||||
0:39 Function Call: g( (highp int)
|
||||
0:42 'sin' (highp float)
|
||||
0:39 Function Call: g( (temp highp int)
|
||||
0:42 'sin' (temp highp float)
|
||||
0:43 Constant:
|
||||
0:43 0.000000
|
||||
0:44 Function Call: f(i1;i1;i1; (highp int)
|
||||
0:44 Function Call: f(i1;i1;i1; (global highp int)
|
||||
0:44 Constant:
|
||||
0:44 1 (const int)
|
||||
0:44 Constant:
|
||||
0:44 2 (const int)
|
||||
0:44 Constant:
|
||||
0:44 3 (const int)
|
||||
0:47 move second child to first child (highp float)
|
||||
0:47 'f' (highp float)
|
||||
0:47 move second child to first child (temp highp float)
|
||||
0:47 'f' (temp highp float)
|
||||
0:47 Constant:
|
||||
0:47 3.000000
|
||||
0:49 move second child to first child (highp 4-component vector of float)
|
||||
0:49 move second child to first child (temp highp 4-component vector of float)
|
||||
0:49 'gl_Position' (invariant gl_Position highp 4-component vector of float)
|
||||
0:49 Construct vec4 (highp 4-component vector of float)
|
||||
0:49 'f' (highp float)
|
||||
0:49 Construct vec4 (temp highp 4-component vector of float)
|
||||
0:49 'f' (temp highp float)
|
||||
0:51 Sequence
|
||||
0:51 Sequence
|
||||
0:51 move second child to first child (highp int)
|
||||
0:51 'f' (highp int)
|
||||
0:51 move second child to first child (temp highp int)
|
||||
0:51 'f' (temp highp int)
|
||||
0:51 Constant:
|
||||
0:51 0 (const int)
|
||||
0:51 Loop with condition tested first
|
||||
0:51 Loop Condition
|
||||
0:51 Compare Less Than (bool)
|
||||
0:51 'f' (highp int)
|
||||
0:51 Compare Less Than (temp bool)
|
||||
0:51 'f' (temp highp int)
|
||||
0:51 Constant:
|
||||
0:51 10 (const int)
|
||||
0:51 Loop Body
|
||||
0:52 Pre-Increment (highp int)
|
||||
0:52 'f' (highp int)
|
||||
0:52 Pre-Increment (temp highp int)
|
||||
0:52 'f' (temp highp int)
|
||||
0:51 Loop Terminal Expression
|
||||
0:51 Pre-Increment (highp int)
|
||||
0:51 'f' (highp int)
|
||||
0:51 Pre-Increment (temp highp int)
|
||||
0:51 'f' (temp highp int)
|
||||
0:54 Sequence
|
||||
0:54 move second child to first child (highp int)
|
||||
0:54 'x' (highp int)
|
||||
0:54 move second child to first child (temp highp int)
|
||||
0:54 'x' (temp highp int)
|
||||
0:54 Constant:
|
||||
0:54 1 (const int)
|
||||
0:56 Sequence
|
||||
0:56 Sequence
|
||||
0:56 move second child to first child (highp float)
|
||||
0:56 'x' (highp float)
|
||||
0:56 move second child to first child (temp highp float)
|
||||
0:56 'x' (temp highp float)
|
||||
0:56 Constant:
|
||||
0:56 2.000000
|
||||
0:56 move second child to first child (highp float)
|
||||
0:56 'y' (highp float)
|
||||
0:56 'x' (highp float)
|
||||
0:56 move second child to first child (temp highp float)
|
||||
0:56 'y' (temp highp float)
|
||||
0:56 'x' (temp highp float)
|
||||
0:60 Sequence
|
||||
0:60 Sequence
|
||||
0:60 move second child to first child (highp int)
|
||||
0:60 'x' (highp int)
|
||||
0:60 'x' (highp int)
|
||||
0:60 move second child to first child (temp highp int)
|
||||
0:60 'x' (temp highp int)
|
||||
0:60 'x' (temp highp int)
|
||||
0:68 Sequence
|
||||
0:68 Sequence
|
||||
0:68 move second child to first child (structure{highp int x})
|
||||
0:68 'S' (structure{highp int x})
|
||||
0:68 move second child to first child (temp structure{temp highp int x})
|
||||
0:68 'S' (temp structure{temp highp int x})
|
||||
0:68 Constant:
|
||||
0:68 0 (const int)
|
||||
0:69 x: direct index for structure (highp int)
|
||||
0:69 'S' (structure{highp int x})
|
||||
0:69 x: direct index for structure (temp highp int)
|
||||
0:69 'S' (temp structure{temp highp int x})
|
||||
0:69 Constant:
|
||||
0:69 0 (const int)
|
||||
0:73 Constant:
|
||||
0:73 0.000000
|
||||
0:? Linker Objects
|
||||
0:? 'b' (bool)
|
||||
0:? 'tan' (highp float)
|
||||
0:? 's' (smooth out structure{highp float f})
|
||||
0:? 'b' (global bool)
|
||||
0:? 'tan' (global highp float)
|
||||
0:? 's' (smooth out structure{global highp float f})
|
||||
|
||||
|
||||
Linked vertex stage:
|
||||
@@ -129,7 +129,7 @@ Linked vertex stage:
|
||||
|
||||
Shader version: 100
|
||||
ERROR: node is still EOpNull!
|
||||
0:3 Function Definition: f(i1;i1;i1; (highp int)
|
||||
0:3 Function Definition: f(i1;i1;i1; (global highp int)
|
||||
0:3 Function Parameters:
|
||||
0:3 'a' (in highp int)
|
||||
0:3 'b' (in highp int)
|
||||
@@ -137,102 +137,102 @@ ERROR: node is still EOpNull!
|
||||
0:? Sequence
|
||||
0:8 Sequence
|
||||
0:8 Sequence
|
||||
0:8 move second child to first child (highp float)
|
||||
0:8 'a' (highp float)
|
||||
0:8 add (highp float)
|
||||
0:8 Convert int to float (highp float)
|
||||
0:8 move second child to first child (temp highp float)
|
||||
0:8 'a' (temp highp float)
|
||||
0:8 add (temp highp float)
|
||||
0:8 Convert int to float (temp highp float)
|
||||
0:8 'a' (in highp int)
|
||||
0:8 Constant:
|
||||
0:8 1.000000
|
||||
0:11 Branch: Return with expression
|
||||
0:11 'a' (in highp int)
|
||||
0:25 Function Definition: cos(f1; (highp float)
|
||||
0:25 Function Definition: cos(f1; (global highp float)
|
||||
0:25 Function Parameters:
|
||||
0:25 'x' (in highp float)
|
||||
0:27 Sequence
|
||||
0:27 Branch: Return with expression
|
||||
0:27 Constant:
|
||||
0:27 1.000000
|
||||
0:29 Function Definition: radians(b1; (bool)
|
||||
0:29 Function Definition: radians(b1; (global bool)
|
||||
0:29 Function Parameters:
|
||||
0:29 'x' (in bool)
|
||||
0:31 Sequence
|
||||
0:31 Branch: Return with expression
|
||||
0:31 Constant:
|
||||
0:31 true (const bool)
|
||||
0:36 Function Definition: main( (void)
|
||||
0:36 Function Definition: main( (global void)
|
||||
0:36 Function Parameters:
|
||||
0:? Sequence
|
||||
0:39 Function Call: g( (highp int)
|
||||
0:42 'sin' (highp float)
|
||||
0:39 Function Call: g( (temp highp int)
|
||||
0:42 'sin' (temp highp float)
|
||||
0:43 Constant:
|
||||
0:43 0.000000
|
||||
0:44 Function Call: f(i1;i1;i1; (highp int)
|
||||
0:44 Function Call: f(i1;i1;i1; (global highp int)
|
||||
0:44 Constant:
|
||||
0:44 1 (const int)
|
||||
0:44 Constant:
|
||||
0:44 2 (const int)
|
||||
0:44 Constant:
|
||||
0:44 3 (const int)
|
||||
0:47 move second child to first child (highp float)
|
||||
0:47 'f' (highp float)
|
||||
0:47 move second child to first child (temp highp float)
|
||||
0:47 'f' (temp highp float)
|
||||
0:47 Constant:
|
||||
0:47 3.000000
|
||||
0:49 move second child to first child (highp 4-component vector of float)
|
||||
0:49 move second child to first child (temp highp 4-component vector of float)
|
||||
0:49 'gl_Position' (invariant gl_Position highp 4-component vector of float)
|
||||
0:49 Construct vec4 (highp 4-component vector of float)
|
||||
0:49 'f' (highp float)
|
||||
0:49 Construct vec4 (temp highp 4-component vector of float)
|
||||
0:49 'f' (temp highp float)
|
||||
0:51 Sequence
|
||||
0:51 Sequence
|
||||
0:51 move second child to first child (highp int)
|
||||
0:51 'f' (highp int)
|
||||
0:51 move second child to first child (temp highp int)
|
||||
0:51 'f' (temp highp int)
|
||||
0:51 Constant:
|
||||
0:51 0 (const int)
|
||||
0:51 Loop with condition tested first
|
||||
0:51 Loop Condition
|
||||
0:51 Compare Less Than (bool)
|
||||
0:51 'f' (highp int)
|
||||
0:51 Compare Less Than (temp bool)
|
||||
0:51 'f' (temp highp int)
|
||||
0:51 Constant:
|
||||
0:51 10 (const int)
|
||||
0:51 Loop Body
|
||||
0:52 Pre-Increment (highp int)
|
||||
0:52 'f' (highp int)
|
||||
0:52 Pre-Increment (temp highp int)
|
||||
0:52 'f' (temp highp int)
|
||||
0:51 Loop Terminal Expression
|
||||
0:51 Pre-Increment (highp int)
|
||||
0:51 'f' (highp int)
|
||||
0:51 Pre-Increment (temp highp int)
|
||||
0:51 'f' (temp highp int)
|
||||
0:54 Sequence
|
||||
0:54 move second child to first child (highp int)
|
||||
0:54 'x' (highp int)
|
||||
0:54 move second child to first child (temp highp int)
|
||||
0:54 'x' (temp highp int)
|
||||
0:54 Constant:
|
||||
0:54 1 (const int)
|
||||
0:56 Sequence
|
||||
0:56 Sequence
|
||||
0:56 move second child to first child (highp float)
|
||||
0:56 'x' (highp float)
|
||||
0:56 move second child to first child (temp highp float)
|
||||
0:56 'x' (temp highp float)
|
||||
0:56 Constant:
|
||||
0:56 2.000000
|
||||
0:56 move second child to first child (highp float)
|
||||
0:56 'y' (highp float)
|
||||
0:56 'x' (highp float)
|
||||
0:56 move second child to first child (temp highp float)
|
||||
0:56 'y' (temp highp float)
|
||||
0:56 'x' (temp highp float)
|
||||
0:60 Sequence
|
||||
0:60 Sequence
|
||||
0:60 move second child to first child (highp int)
|
||||
0:60 'x' (highp int)
|
||||
0:60 'x' (highp int)
|
||||
0:60 move second child to first child (temp highp int)
|
||||
0:60 'x' (temp highp int)
|
||||
0:60 'x' (temp highp int)
|
||||
0:68 Sequence
|
||||
0:68 Sequence
|
||||
0:68 move second child to first child (structure{highp int x})
|
||||
0:68 'S' (structure{highp int x})
|
||||
0:68 move second child to first child (temp structure{temp highp int x})
|
||||
0:68 'S' (temp structure{temp highp int x})
|
||||
0:68 Constant:
|
||||
0:68 0 (const int)
|
||||
0:69 x: direct index for structure (highp int)
|
||||
0:69 'S' (structure{highp int x})
|
||||
0:69 x: direct index for structure (temp highp int)
|
||||
0:69 'S' (temp structure{temp highp int x})
|
||||
0:69 Constant:
|
||||
0:69 0 (const int)
|
||||
0:73 Constant:
|
||||
0:73 0.000000
|
||||
0:? Linker Objects
|
||||
0:? 'b' (bool)
|
||||
0:? 'tan' (highp float)
|
||||
0:? 's' (smooth out structure{highp float f})
|
||||
0:? 'b' (global bool)
|
||||
0:? 'tan' (global highp float)
|
||||
0:? 's' (smooth out structure{global highp float f})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user