[Piglit] [PATCH 7/8] glsl-1.50: make sure 'out' interface blocks are rejected for FS
Jordan Justen
jordan.l.justen at intel.com
Sun Feb 17 10:31:26 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-out-block-no-instance.frag | 16 ++++++++++++++++
.../glsl-1.50/compiler/interface-blocks-out-block.frag | 16 ++++++++++++++++
2 files changed, 32 insertions(+)
create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-out-block-no-instance.frag
create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-out-block.frag
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-out-block-no-instance.frag b/tests/spec/glsl-1.50/compiler/interface-blocks-out-block-no-instance.frag
new file mode 100644
index 0000000..d88c6f4
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-out-block-no-instance.frag
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+
+#version 150
+
+out block {
+ vec4 iface_var;
+};
+
+void main()
+{
+}
+
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-out-block.frag b/tests/spec/glsl-1.50/compiler/interface-blocks-out-block.frag
new file mode 100644
index 0000000..aff7860
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-out-block.frag
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+
+#version 150
+
+out block {
+ vec4 iface_var;
+} inst;
+
+void main()
+{
+}
+
--
1.7.10.4
More information about the Piglit
mailing list