[Piglit] [PATCH 6/8] glsl-1.50: make sure 'in' interface blocks are rejected for VS

Jordan Justen jordan.l.justen at intel.com
Sun Feb 17 10:31:25 PST 2013


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---

nVidia binary drivers seem to fail the 'no instance'
version. (They don't flag a compiler error.) Did I
misinterpret the spec?

 .../interface-blocks-in-block-no-instance.vert         |   16 ++++++++++++++++
 .../glsl-1.50/compiler/interface-blocks-in-block.vert  |   16 ++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-in-block-no-instance.vert
 create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-in-block.vert

diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-in-block-no-instance.vert b/tests/spec/glsl-1.50/compiler/interface-blocks-in-block-no-instance.vert
new file mode 100644
index 0000000..9d44fd3
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-in-block-no-instance.vert
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+
+#version 150
+
+in block {
+    vec4 iface_var;
+};
+
+void main()
+{
+}
+
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-in-block.vert b/tests/spec/glsl-1.50/compiler/interface-blocks-in-block.vert
new file mode 100644
index 0000000..d1cc256
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-in-block.vert
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+
+#version 150
+
+in block {
+    vec4 iface_var;
+} inst;
+
+void main()
+{
+}
+
-- 
1.7.10.4



More information about the Piglit mailing list