Miscellaneous ES 3.1 semantics, and identification of all missing features.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27732 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2014-08-14 07:07:21 +00:00
parent f014740066
commit b3007519fc
11 changed files with 210 additions and 14 deletions

View File

@@ -34,12 +34,14 @@ ERROR: 0:123: '==' : can't use with samplers or structs containing samplers
ERROR: 0:129: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset]
ERROR: 0:129: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset]
ERROR: 0:148: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)
ERROR: 0:150: 'imageBuffer' : Reserved word.
ERROR: 0:150: '' : syntax error
ERROR: 37 compilation errors. No code generated.
ERROR: 0:150: 'early_fragment_tests' : not supported for this version or the enabled extensions
ERROR: 0:152: 'imageBuffer' : Reserved word.
ERROR: 0:152: '' : syntax error
ERROR: 38 compilation errors. No code generated.
Shader version: 300
using early_fragment_tests
ERROR: node is still EOpNull!
0:53 Function Definition: main( (void)
0:53 Function Parameters:
@@ -394,6 +396,7 @@ Linked fragment stage:
ERROR: Linking fragment stage: when more than one fragment shader output, all must have location qualifiers
Shader version: 300
using early_fragment_tests
ERROR: node is still EOpNull!
0:53 Function Definition: main( (void)
0:53 Function Parameters:

View File

@@ -1,9 +1,12 @@
300layout.frag
ERROR: 0:4: 'location qualifier on input' : not supported in this stage: fragment
ERROR: 0:4: 'location qualifier on input' : not supported for this version or the enabled extensions
ERROR: 0:17: 'location' : too large for fragment output
ERROR: 0:18: 'location' : too large for fragment output
ERROR: 0:18: 'location' : overlapping use of location 41
ERROR: 0:19: 'location' : too large for fragment output
ERROR: 0:19: 'location' : overlapping use of location 40
ERROR: 4 compilation errors. No code generated.
ERROR: 7 compilation errors. No code generated.
Shader version: 300

View File

@@ -42,7 +42,21 @@ ERROR: 0:141: 'atomic_uint' : atomic counters can only be highp
ERROR: 0:141: 'binding' : cannot be greater-than-or-equal to gl_MaxAtomicCounterBindings
ERROR: 0:143: 'binding' : cannot be greater-than-or-equal to gl_MaxAtomicCounterBindings
ERROR: 0:149: '[]' : scalar integer expression required
ERROR: 42 compilation errors. No code generated.
ERROR: 0:166: 'precision' : can only apply highp to atomic_uint
ERROR: 0:168: 'precise' : Reserved word.
ERROR: 0:170: 'dmat2x4' : Reserved word.
ERROR: 0:170: 'double matrix' : not supported with this profile: es
ERROR: 0:171: 'samplerCubeArray' : Reserved word.
ERROR: 0:171: 'sampler/image' : type requires declaration of default precision qualifier
ERROR: 0:172: 'iimage2DRect' : Reserved word.
ERROR: 0:172: 'sampler/image' : type requires declaration of default precision qualifier
ERROR: 0:172: '' : image variables not declared 'writeonly' must have a format layout qualifier
ERROR: 0:173: 'image2DMS' : Reserved word.
ERROR: 0:173: '' : image variables not declared 'writeonly' must have a format layout qualifier
ERROR: 0:174: 'uimage2DMSArray' : Reserved word.
ERROR: 0:174: 'sampler/image' : type requires declaration of default precision qualifier
ERROR: 0:174: '' : image variables not declared 'writeonly' must have a format layout qualifier
ERROR: 56 compilation errors. No code generated.
Shader version: 310
@@ -262,6 +276,12 @@ ERROR: node is still EOpNull!
0:? 'i' (uniform highp int)
0:? 'atomi' (shared highp int)
0:? 'atomu' (shared highp uint)
0:? 'pfoo' (highp int)
0:? 'dm' (2X4 matrix of double)
0:? 'sca' (uniform mediump samplerCubeArray)
0:? 'i2dr' (uniform mediump iimage2DRect)
0:? 'i2dms' (uniform lowp image2DMS)
0:? 'u2dmsa' (uniform mediump uimage2DMSArray)
Linked compute stage:
@@ -484,4 +504,10 @@ ERROR: node is still EOpNull!
0:? 'i' (uniform highp int)
0:? 'atomi' (shared highp int)
0:? 'atomu' (shared highp uint)
0:? 'pfoo' (highp int)
0:? 'dm' (2X4 matrix of double)
0:? 'sca' (uniform mediump samplerCubeArray)
0:? 'i2dr' (uniform mediump iimage2DRect)
0:? 'i2dms' (uniform lowp image2DMS)
0:? 'u2dmsa' (uniform mediump uimage2DMSArray)

View File

@@ -17,10 +17,25 @@ ERROR: 0:44: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset,
ERROR: 0:45: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset]
ERROR: 0:45: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset]
ERROR: 0:69: 'binding' : requires block, or sampler/image, or atomic-counter type
ERROR: 17 compilation errors. No code generated.
ERROR: 0:73: 'location' : location is too large
ERROR: 0:77: 'location' : too large for fragment output
ERROR: 0:78: 'location' : too large for fragment output
ERROR: 0:78: 'location' : overlapping use of location 40
ERROR: 0:79: 'non-literal layout-id value' : not supported with this profile: es
ERROR: 0:79: 'layout-id value' : cannot be negative
ERROR: 0:92: 'sampler2DMS' : Reserved word.
ERROR: 0:98: 'textureSize' : no matching overloaded function found
ERROR: 0:98: 'assign' : cannot convert from 'const float' to 'highp 2-component vector of int'
ERROR: 0:99: 'writeonly' : argument cannot drop memory qualifier when passed to formal parameter
ERROR: 0:102: 'out' : cannot be bool
ERROR: 0:103: 'image2D' : sampler/image types can only be used in uniform variables or function parameters: imageOut
ERROR: 0:103: '' : image variables not declared 'writeonly' must have a format layout qualifier
ERROR: 0:104: 'out' : cannot be a matrix
ERROR: 31 compilation errors. No code generated.
Shader version: 310
using early_fragment_tests
ERROR: node is still EOpNull!
0:21 Function Definition: main( (void)
0:21 Function Parameters:
@@ -193,6 +208,28 @@ ERROR: node is still EOpNull!
0:60 'i' (uniform mediump int)
0:60 Construct bvec4 (4-component vector of bool)
0:60 'b' (bool)
0:94 Function Definition: foots( (void)
0:94 Function Parameters:
0:96 Sequence
0:96 Sequence
0:96 move second child to first child (highp 2-component vector of int)
0:96 'v2' (highp 2-component vector of int)
0:96 Function Call: textureSize(s21;i1; (highp 2-component vector of int)
0:96 's1' (layout(binding=3 ) uniform highp sampler2D)
0:96 Constant:
0:96 2 (const int)
0:97 Sequence
0:97 move second child to first child (highp 3-component vector of int)
0:97 'v3' (highp 3-component vector of int)
0:97 Function Call: textureSize(isA21;i1; (highp 3-component vector of int)
0:97 'isamp2DA' (uniform highp isampler2DArray)
0:97 Constant:
0:97 3 (const int)
0:98 'v2' (highp 2-component vector of int)
0:99 move second child to first child (highp 2-component vector of int)
0:99 'v2' (highp 2-component vector of int)
0:99 Function Call: imageSize(I21; (highp 2-component vector of int)
0:99 'i2D' (layout(binding=2 ) writeonly uniform highp image2D)
0:? Linker Objects
0:? 'gl_FragCoord' (smooth in mediump 4-component vector of float)
0:? 'v3' (layout(location=2 ) smooth in mediump 3-component vector of float)
@@ -208,12 +245,27 @@ ERROR: node is still EOpNull!
0:? 's2' (layout(binding=3 ) uniform highp sampler2D)
0:? 'i2D' (layout(binding=2 ) writeonly uniform highp image2D)
0:? 'bbi' (layout(binding=1 column_major shared ) uniform block{layout(column_major shared ) uniform mediump int foo, layout(binding=2 column_major shared ) uniform mediump float f})
0:? 'centroidIn' (centroid smooth in mediump 4-component vector of float)
0:? 'bigl' (uniform mediump 4-component vector of float)
0:? 'bigout1' (layout(location=40 ) out mediump 4-component vector of float)
0:? 'bigout2' (layout(location=40 ) out mediump 4-component vector of float)
0:? 'neg' (out mediump 4-component vector of float)
0:? 'b430i' (layout(column_major std430 ) uniform block{layout(column_major std430 offset=0 ) uniform mediump int i})
0:? 'bshari' (layout(column_major shared ) uniform block{layout(column_major shared ) uniform mediump int i})
0:? 'smoothIn' (smooth in mediump 4-component vector of float)
0:? 'flatIn' (flat in mediump int)
0:? 's2dms' (uniform highp sampler2DMS)
0:? 'bout' (out bool)
0:? 'imageOut' (out highp image2D)
0:? 'mout' (out mediump 2X3 matrix of float)
Linked fragment stage:
ERROR: Linking fragment stage: when more than one fragment shader output, all must have location qualifiers
Shader version: 310
using early_fragment_tests
ERROR: node is still EOpNull!
0:21 Function Definition: main( (void)
0:21 Function Parameters:
@@ -386,6 +438,28 @@ ERROR: node is still EOpNull!
0:60 'i' (uniform mediump int)
0:60 Construct bvec4 (4-component vector of bool)
0:60 'b' (bool)
0:94 Function Definition: foots( (void)
0:94 Function Parameters:
0:96 Sequence
0:96 Sequence
0:96 move second child to first child (highp 2-component vector of int)
0:96 'v2' (highp 2-component vector of int)
0:96 Function Call: textureSize(s21;i1; (highp 2-component vector of int)
0:96 's1' (layout(binding=3 ) uniform highp sampler2D)
0:96 Constant:
0:96 2 (const int)
0:97 Sequence
0:97 move second child to first child (highp 3-component vector of int)
0:97 'v3' (highp 3-component vector of int)
0:97 Function Call: textureSize(isA21;i1; (highp 3-component vector of int)
0:97 'isamp2DA' (uniform highp isampler2DArray)
0:97 Constant:
0:97 3 (const int)
0:98 'v2' (highp 2-component vector of int)
0:99 move second child to first child (highp 2-component vector of int)
0:99 'v2' (highp 2-component vector of int)
0:99 Function Call: imageSize(I21; (highp 2-component vector of int)
0:99 'i2D' (layout(binding=2 ) writeonly uniform highp image2D)
0:? Linker Objects
0:? 'gl_FragCoord' (smooth in mediump 4-component vector of float)
0:? 'v3' (layout(location=2 ) smooth in mediump 3-component vector of float)
@@ -401,4 +475,17 @@ ERROR: node is still EOpNull!
0:? 's2' (layout(binding=3 ) uniform highp sampler2D)
0:? 'i2D' (layout(binding=2 ) writeonly uniform highp image2D)
0:? 'bbi' (layout(binding=1 column_major shared ) uniform block{layout(column_major shared ) uniform mediump int foo, layout(binding=2 column_major shared ) uniform mediump float f})
0:? 'centroidIn' (centroid smooth in mediump 4-component vector of float)
0:? 'bigl' (uniform mediump 4-component vector of float)
0:? 'bigout1' (layout(location=40 ) out mediump 4-component vector of float)
0:? 'bigout2' (layout(location=40 ) out mediump 4-component vector of float)
0:? 'neg' (out mediump 4-component vector of float)
0:? 'b430i' (layout(column_major std430 ) uniform block{layout(column_major std430 offset=0 ) uniform mediump int i})
0:? 'bshari' (layout(column_major shared ) uniform block{layout(column_major shared ) uniform mediump int i})
0:? 'smoothIn' (smooth in mediump 4-component vector of float)
0:? 'flatIn' (flat in mediump int)
0:? 's2dms' (uniform highp sampler2DMS)
0:? 'bout' (out bool)
0:? 'imageOut' (out highp image2D)
0:? 'mout' (out mediump 2X3 matrix of float)