[Piglit] [PATCH 12/12] arb_tessellation_shader: Add tests for gl_out[] redeclaration
Chris Forbes
chrisf at ijw.co.nz
Wed Sep 17 00:42:25 PDT 2014
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
.../compiler/redeclaring-gl_out-junk-member.tesc | 13 +++++++++++++
.../compiler/redeclaring-gl_out-must-be-array.tesc | 12 ++++++++++++
.../compiler/redeclaring-gl_out-no-instance-name.tesc | 12 ++++++++++++
.../compiler/redeclaring-gl_out-ok.tesc | 12 ++++++++++++
4 files changed, 49 insertions(+)
create mode 100644 tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-junk-member.tesc
create mode 100644 tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-must-be-array.tesc
create mode 100644 tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-no-instance-name.tesc
create mode 100644 tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-ok.tesc
diff --git a/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-junk-member.tesc b/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-junk-member.tesc
new file mode 100644
index 0000000..761dd1b
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-junk-member.tesc
@@ -0,0 +1,13 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+out gl_PerVertex {
+ vec4 gl_Position;
+ vec4 junk; /* must be subset of implicit decl! */
+} gl_out[];
diff --git a/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-must-be-array.tesc b/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-must-be-array.tesc
new file mode 100644
index 0000000..fe30570
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-must-be-array.tesc
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+out gl_PerVertex {
+ vec4 gl_Position;
+} gl_out; /* not array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-no-instance-name.tesc b/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-no-instance-name.tesc
new file mode 100644
index 0000000..286b22b
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-no-instance-name.tesc
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+out gl_PerVertex {
+ vec4 gl_Position;
+}; /* no instance name */
diff --git a/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-ok.tesc b/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-ok.tesc
new file mode 100644
index 0000000..b185870
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/redeclaring-gl_out-ok.tesc
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+out gl_PerVertex {
+ vec4 gl_Position;
+} gl_out[];
--
2.1.0
More information about the Piglit
mailing list