summaryrefslogtreecommitdiff
path: root/tests/spec
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-07-17 11:57:13 -0700
committerMatt Turner <mattst88@gmail.com>2013-07-19 13:08:48 -0700
commitb445230940092524072ce48e6ecb9869268bbcb2 (patch)
tree58821635e76a4a0eb7e4c4893332b10db448418d /tests/spec
parent3081abb060c2742dd18431364d8a00795927d56c (diff)
arb_shading_language_420pack: Test that invariant can be used after storage and interp qualifiers.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'tests/spec')
-rw-r--r--tests/spec/arb_shading_language_420pack/compiler/qualifiers/invariant-qual-ordering.vert19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/invariant-qual-ordering.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/invariant-qual-ordering.vert
new file mode 100644
index 000000000..60dff91a3
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/invariant-qual-ordering.vert
@@ -0,0 +1,19 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ *
+ * From the GL_ARB_shading_language_420pack spec:
+ *
+ * '" Delete the following sentence in the "Invariant Qualifier" section:
+ *
+ * "The invariant qualifier must appear before any interpolation qualifiers
+ * or storage qualifiers when combined with a declaration."'
+ *
+ * Test that the invariant qualifier can be used after interpolation and
+ * storage qualifiers.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+out flat invariant float x;