[Piglit] [PATCH 04/12] arb_shading_language_420pack: Test that interp and aux qualifiers can't be used on VS inputs.
Matt Turner
mattst88 at gmail.com
Thu Jul 18 13:35:00 PDT 2013
---
.../compiler/qualifiers/no-aux-qual-on-vs-input.vert | 17 +++++++++++++++++
.../qualifiers/no-interpolation-qual-on-vs-input.vert | 17 +++++++++++++++++
2 files changed, 34 insertions(+)
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-vs-input.vert
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-vs-input.vert
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-vs-input.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-vs-input.vert
new file mode 100644
index 0000000..509e86d
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-vs-input.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:
+ *
+ * "It is an error to use any auxiliary or interpolation qualifiers on a
+ * vertex shader input."
+ *
+ * Test that an interpolation qualifier on a vertex shader input results in a
+ * compile error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+centroid in float x;
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-vs-input.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-vs-input.vert
new file mode 100644
index 0000000..e3e086a
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-vs-input.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:
+ *
+ * "It is an error to use any auxiliary or interpolation qualifiers on a
+ * vertex shader input."
+ *
+ * Test that an interpolation qualifier on a vertex shader input results in a
+ * compile error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+flat in float x;
--
1.8.1.5
More information about the Piglit
mailing list