[Piglit] [PATCH 08/12] arb_shading_language_420pack: Test that invariant can be used after storage and interp qualifiers.

Matt Turner mattst88 at gmail.com
Thu Jul 18 13:35:04 PDT 2013


---
 .../compiler/qualifiers/invariant-qual-ordering.vert  | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/invariant-qual-ordering.vert

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 0000000..60dff91
--- /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;
-- 
1.8.1.5



More information about the Piglit mailing list