[Piglit] [PATCH 4/4] glsl-1.50: test invalid member qualifiers are rejected during compilation
Jordan Justen
jordan.l.justen at intel.com
Mon Mar 25 10:56:48 PDT 2013
Certain uniform or varying qualifiers can only be used with
uniform or varying interfaces.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
...ce-blocks-invalid-member-qualifiers.shader_test | 52 ++++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-invalid-member-qualifiers.shader_test
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-invalid-member-qualifiers.shader_test b/tests/spec/glsl-1.50/compiler/interface-blocks-invalid-member-qualifiers.shader_test
new file mode 100644
index 0000000..62116ca
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-invalid-member-qualifiers.shader_test
@@ -0,0 +1,52 @@
+[require]
+GLSL >= 1.50
+
+[vertex shader]
+uniform block {
+ smooth float a;
+};
+
+[vertex shader]
+uniform block {
+ flat float a;
+};
+
+[vertex shader]
+uniform block {
+ noperspective float a;
+};
+
+[vertex shader]
+uniform block {
+ centroid out float a;
+};
+
+# Vertex shader out block tests
+[vertex shader]
+out block {
+ layout(shared) mat4 a;
+};
+
+[vertex shader]
+out block {
+ layout(packed) mat4 a;
+};
+
+[vertex shader]
+out block {
+ layout(std140) mat4 a;
+};
+
+[vertex shader]
+out block {
+ layout(row_major) mat4 a;
+};
+
+[vertex shader]
+out block {
+ layout(column_major) mat4 a;
+};
+
+[test]
+compile error
+
--
1.7.10.4
More information about the Piglit
mailing list