Add another frexp() test.
authorJohn Kessenich <cepheus@frii.com>
Mon, 5 Oct 2015 16:00:27 +0000 (10:00 -0600)
committerJohn Kessenich <cepheus@frii.com>
Mon, 5 Oct 2015 16:00:27 +0000 (10:00 -0600)
Test/310.vert
Test/baseResults/310.vert.out
glslang/Include/revision.h

index 1782938..58ed748 100644 (file)
@@ -3,7 +3,7 @@
 shared vec4 s;   // ERROR\r
 layout(local_size_x = 2) out;  // ERROR\r
 buffer vec4 v;  // ERROR\r
-\r
+in int ini;\r
 layout(location = 2) uniform mat4 x;\r
 layout(location = 3) uniform mat4 y;\r
 layout(location = 2) out mat4 xi;\r
@@ -65,8 +65,8 @@ void foo()
     vec4 v4 = texelFetch(s2dms, v2, 2);\r
     ivec4 iv4 = texelFetch(is2dms, v2, 2);\r
     textureSamples(s2dms);   // ERROR\r
-\r
-\r
+    float f;\r
+    frexp(f, ini);     // ERROR, i not writable\r
 }\r
 \r
 out bool outb;         // ERROR\r
index 95770ce..6d02e4c 100644 (file)
@@ -7,6 +7,8 @@ ERROR: 0:10: 'location' : overlapping use of location 3
 ERROR: 0:58: 'usampler2DMSArray' : Reserved word. \r
 ERROR: 0:58: 'sampler/image' : type requires declaration of default precision qualifier \r
 ERROR: 0:67: 'textureSamples' : no matching overloaded function found \r
+ERROR: 0:69: 'assign' :  l-value required "ini" (can't modify shader input)\r
+ERROR: 0:69: 'out' : Non-L-value cannot be passed for 'out' or 'inout' parameters. \r
 ERROR: 0:72: 'out' : cannot be bool \r
 ERROR: 0:73: 'sampler2D' : sampler/image types can only be used in uniform variables or function parameters: outo\r
 ERROR: 0:75: 'vertex-shader array-of-array output' : not supported with this profile: es\r
@@ -94,7 +96,7 @@ ERROR: 0:389: 'sample' : Reserved word.
 ERROR: 0:400: 'interpolateAtCentroid' : no matching overloaded function found \r
 ERROR: 0:401: 'interpolateAtSample' : no matching overloaded function found \r
 ERROR: 0:402: 'interpolateAtOffset' : no matching overloaded function found \r
-ERROR: 90 compilation errors.  No code generated.\r
+ERROR: 92 compilation errors.  No code generated.\r
 \r
 \r
 Shader version: 310\r
@@ -253,6 +255,9 @@ ERROR: node is still EOpNull!
 0:66              2 (const int)\r
 0:67      Constant:\r
 0:67        0.000000\r
+0:69      frexp (global highp float)\r
+0:69        'f' (temp highp float)\r
+0:69        'ini' (in highp int)\r
 0:114  Function Definition: foo_IO( (global void)\r
 0:114    Function Parameters: \r
 0:116    Sequence\r
@@ -911,6 +916,7 @@ ERROR: node is still EOpNull!
 0:?   Linker Objects\r
 0:?     's' (shared highp 4-component vector of float)\r
 0:?     'v' (buffer highp 4-component vector of float)\r
+0:?     'ini' (in highp int)\r
 0:?     'x' (layout(location=2 ) uniform highp 4X4 matrix of float)\r
 0:?     'y' (layout(location=3 ) uniform highp 4X4 matrix of float)\r
 0:?     'xi' (layout(location=2 ) smooth out highp 4X4 matrix of float)\r
@@ -1180,6 +1186,9 @@ ERROR: node is still EOpNull!
 0:66              2 (const int)\r
 0:67      Constant:\r
 0:67        0.000000\r
+0:69      frexp (global highp float)\r
+0:69        'f' (temp highp float)\r
+0:69        'ini' (in highp int)\r
 0:114  Function Definition: foo_IO( (global void)\r
 0:114    Function Parameters: \r
 0:116    Sequence\r
@@ -1838,6 +1847,7 @@ ERROR: node is still EOpNull!
 0:?   Linker Objects\r
 0:?     's' (shared highp 4-component vector of float)\r
 0:?     'v' (buffer highp 4-component vector of float)\r
+0:?     'ini' (in highp int)\r
 0:?     'x' (layout(location=2 ) uniform highp 4X4 matrix of float)\r
 0:?     'y' (layout(location=3 ) uniform highp 4X4 matrix of float)\r
 0:?     'xi' (layout(location=2 ) smooth out highp 4X4 matrix of float)\r
index e74c41a..6319080 100644 (file)
@@ -2,5 +2,5 @@
 // For the version, it uses the latest git tag followed by the number of commits.
 // For the date, it uses the current date (when then script is run).
 
-#define GLSLANG_REVISION "3.0.778"
-#define GLSLANG_DATE "02-Oct-2015"
+#define GLSLANG_REVISION "3.0.779"
+#define GLSLANG_DATE "05-Oct-2015"