[Piglit] [PATCH 5/6] glsl-1.50: varying keyword is not allowed within an interface block

Jordan Justen jordan.l.justen at intel.com
Wed Feb 27 11:24:31 PST 2013


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 .../compiler/interface-blocks-varying-used.vert    |   22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-varying-used.vert

diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-varying-used.vert b/tests/spec/glsl-1.50/compiler/interface-blocks-varying-used.vert
new file mode 100644
index 0000000..c0a957b
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-varying-used.vert
@@ -0,0 +1,22 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+//
+// Tests that a varying qualifier is rejected in an interface block.
+//
+// GLSLangSpec.1.50.11, 4.3.7 Interface Blocks:
+// "Declarations using the deprecated attribute and varying qualifiers
+//  are not allowed."
+
+#version 150
+
+out block {
+    varying vec4 a; // illegal: can't use deprecated varying keyword
+} inst;
+
+void main()
+{
+}
+
-- 
1.7.10.4



More information about the Piglit mailing list