[Piglit] [PATCH 05/12] arb_shading_language_420pack: Test that interp and aux qualifiers can't be used on FS outputs.
Matt Turner
mattst88 at gmail.com
Thu Jul 18 13:35:01 PDT 2013
---
.../compiler/qualifiers/no-aux-qual-on-fs-output.frag | 17 +++++++++++++++++
.../qualifiers/no-interpolation-qual-on-fs-output.frag | 17 +++++++++++++++++
2 files changed, 34 insertions(+)
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-fs-output.frag
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-fs-output.frag
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-fs-output.frag b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-fs-output.frag
new file mode 100644
index 0000000..0c2a6be
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-fs-output.frag
@@ -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 auxiliary storage qualifiers or interpolation
+ * qualifiers on an output in a fragment shader."
+ *
+ * Test that an auxiliary qualifier on a fragment shader output results in
+ * a compile error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+centroid out float x;
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-fs-output.frag b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-fs-output.frag
new file mode 100644
index 0000000..3411f35
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-fs-output.frag
@@ -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 auxiliary storage qualifiers or interpolation
+ * qualifiers on an output in a fragment shader."
+ *
+ * Test that an interpolation qualifier on a fragment shader output results in
+ * a compile error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+flat out float x;
--
1.8.1.5
More information about the Piglit
mailing list