[Piglit] [PATCH 02/12] arb_shading_language_420pack: Test that multiple qualifiers are compile errors.
Matt Turner
mattst88 at gmail.com
Thu Jul 18 13:34:58 PDT 2013
---
.../qualifiers/duplicate-aux-storage-qualifiers.vert | 17 +++++++++++++++++
.../qualifiers/duplicate-interpolation-qualifiers.vert | 17 +++++++++++++++++
.../qualifiers/duplicate-storage-qualifiers.vert | 16 ++++++++++++++++
.../qualifiers/two-interpolation-qualifiers.vert | 16 ++++++++++++++++
.../compiler/qualifiers/two-storage-qualifiers.vert | 16 ++++++++++++++++
5 files changed, 82 insertions(+)
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-aux-storage-qualifiers.vert
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-interpolation-qualifiers.vert
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-storage-qualifiers.vert
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/two-interpolation-qualifiers.vert
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/two-storage-qualifiers.vert
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-aux-storage-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-aux-storage-qualifiers.vert
new file mode 100644
index 0000000..0182e41
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-aux-storage-qualifiers.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ *
+ * From the GL_ARB_shading_language_420pack spec:
+ *
+ * "Some input and output qualified variables can be qualified with at most
+ * one additional auxiliary storage qualifier."
+ *
+ * Test that the same auxiliary storage qualifier twice results in a compile
+ * error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+centroid centroid out float x;
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-interpolation-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-interpolation-qualifiers.vert
new file mode 100644
index 0000000..9c07d19
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-interpolation-qualifiers.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ *
+ * From the GL_ARB_shading_language_420pack spec:
+ *
+ * "Inputs and outputs that could be interpolated can be further qualified by
+ * at most one of the following interpolation qualifiers:"
+ *
+ * Test that the same interpolation qualifier twice results in a compile
+ * error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+flat flat out float x;
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-storage-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-storage-qualifiers.vert
new file mode 100644
index 0000000..6cf346d
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-storage-qualifiers.vert
@@ -0,0 +1,16 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ *
+ * From the GL_ARB_shading_language_420pack spec:
+ *
+ * "Variable declarations may have at most one storage qualifier specified in
+ * front of the type."
+ *
+ * Test that the same storage qualifier twice results in a compile error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+in in float x;
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/two-interpolation-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/two-interpolation-qualifiers.vert
new file mode 100644
index 0000000..9a7cffb
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/two-interpolation-qualifiers.vert
@@ -0,0 +1,16 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ *
+ * From the GL_ARB_shading_language_420pack spec:
+ *
+ * "Inputs and outputs that could be interpolated can be further qualified by
+ * at most one of the following interpolation qualifiers:"
+ *
+ * Test that multiple interpolation qualifiers result in a compile error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+smooth flat out float x;
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/two-storage-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/two-storage-qualifiers.vert
new file mode 100644
index 0000000..6ff5bbb
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/two-storage-qualifiers.vert
@@ -0,0 +1,16 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ *
+ * From the GL_ARB_shading_language_420pack spec:
+ *
+ * "Variable declarations may have at most one storage qualifier specified in
+ * front of the type."
+ *
+ * Test that multiple storage qualifiers result in a compile error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+const in float x;
--
1.8.1.5
More information about the Piglit
mailing list