[Piglit] [PATCH 3/8] glsl-1.50: test for interface block type mismatch error
Jordan Justen
jordan.l.justen at intel.com
Sun Feb 17 10:31:22 PST 2013
This tests to see if an interface block with a type mismatch
between the VS and FS causes a link error.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
...terface-blocks-member-type-mismatch.shader_test | 28 ++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 tests/spec/glsl-1.50/linker/interface-blocks-member-type-mismatch.shader_test
diff --git a/tests/spec/glsl-1.50/linker/interface-blocks-member-type-mismatch.shader_test b/tests/spec/glsl-1.50/linker/interface-blocks-member-type-mismatch.shader_test
new file mode 100644
index 0000000..a996a4d
--- /dev/null
+++ b/tests/spec/glsl-1.50/linker/interface-blocks-member-type-mismatch.shader_test
@@ -0,0 +1,28 @@
+[require]
+GLSL >= 1.50
+
+[vertex shader]
+#version 150
+
+uniform block {
+ vec4 a; // a is vec3 in FS
+} inst_a;
+
+void main()
+{
+}
+
+[fragment shader]
+#version 150
+
+uniform block {
+ vec3 a; // a is vec4 in VS
+} inst_b;
+
+void main()
+{
+}
+
+[test]
+link error
+
--
1.7.10.4
More information about the Piglit
mailing list