[Piglit] [PATCH 09/12] arb_tessellation_shader: Test array requirements for inputs and outputs

Chris Forbes chrisf at ijw.co.nz
Wed Sep 17 00:42:22 PDT 2014


Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 .../compiler/input-block-must-be-array-unnamed.tesc      | 16 ++++++++++++++++
 .../compiler/input-block-must-be-array-unnamed.tese      | 16 ++++++++++++++++
 .../compiler/input-block-must-be-array.tesc              | 14 ++++++++++++++
 .../compiler/input-block-must-be-array.tese              | 14 ++++++++++++++
 .../compiler/input-must-be-array.tesc                    | 12 ++++++++++++
 .../compiler/input-must-be-array.tese                    | 12 ++++++++++++
 .../compiler/output-block-must-be-array-unnamed.tesc     | 16 ++++++++++++++++
 .../compiler/output-block-must-be-array.tesc             | 14 ++++++++++++++
 .../compiler/output-must-be-array.tesc                   | 12 ++++++++++++
 .../compiler/uniform-block-non-array.tesc                | 15 +++++++++++++++
 10 files changed, 141 insertions(+)
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tesc
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array.tesc
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array.tese
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/input-must-be-array.tesc
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/input-must-be-array.tese
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/output-block-must-be-array-unnamed.tesc
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/output-block-must-be-array.tesc
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/output-must-be-array.tesc
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/uniform-block-non-array.tesc

diff --git a/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tesc b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tesc
new file mode 100644
index 0000000..a35cd98
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tesc
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Inputs to the tessellation control shader must be arrays.
+// This test covers the case where the block has no instance name, which is
+// significant for Mesa's compiler.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+in block {
+	vec4 x;
+};	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese
new file mode 100644
index 0000000..7994784
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Per-vertex inputs to the tessellation evaluation shader must be arrays.
+// This test covers the case where the block has no instance name, which is
+// significant for Mesa's compiler.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+in block {
+	vec4 x;
+};	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array.tesc b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array.tesc
new file mode 100644
index 0000000..d1faa5b
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array.tesc
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Inputs to the tessellation control shader must be arrays.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+in block {
+	vec4 x;
+} xs;	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array.tese b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array.tese
new file mode 100644
index 0000000..09898b1
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array.tese
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Per-vertex inputs to the tessellation evaluation shader must be arrays.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+in block {
+	vec4 x;
+} xs;	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/input-must-be-array.tesc b/tests/spec/arb_tessellation_shader/compiler/input-must-be-array.tesc
new file mode 100644
index 0000000..f36a3ff
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/input-must-be-array.tesc
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Inputs to the tessellation control shader must be arrays.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+in vec4 x;	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/input-must-be-array.tese b/tests/spec/arb_tessellation_shader/compiler/input-must-be-array.tese
new file mode 100644
index 0000000..eb3596e
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/input-must-be-array.tese
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Per-vertex inputs to the tessellation evaluation shader must be arrays.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+in vec4 x;	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/output-block-must-be-array-unnamed.tesc b/tests/spec/arb_tessellation_shader/compiler/output-block-must-be-array-unnamed.tesc
new file mode 100644
index 0000000..910b035
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/output-block-must-be-array-unnamed.tesc
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Per-vertex outputs from the tessellation control shader must be arrays.
+// This test covers the case where an output array has no instance name,
+// which is significant for Mesa's compiler.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+out block {
+	vec4 x;
+};	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/output-block-must-be-array.tesc b/tests/spec/arb_tessellation_shader/compiler/output-block-must-be-array.tesc
new file mode 100644
index 0000000..3de153a
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/output-block-must-be-array.tesc
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Per-vertex outputs from the tessellation control shader must be arrays.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+out block {
+	vec4 x;
+} xs;	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/output-must-be-array.tesc b/tests/spec/arb_tessellation_shader/compiler/output-must-be-array.tesc
new file mode 100644
index 0000000..47d1e4f
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/output-must-be-array.tesc
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Per-vertex outputs from the tessellation control shader must be arrays.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+out vec4 x;	/* not an array */
diff --git a/tests/spec/arb_tessellation_shader/compiler/uniform-block-non-array.tesc b/tests/spec/arb_tessellation_shader/compiler/uniform-block-non-array.tesc
new file mode 100644
index 0000000..361bc50
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/uniform-block-non-array.tesc
@@ -0,0 +1,15 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Uniform blocks should not be affected by array requirements for input or output
+// blocks.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+uniform block {
+	vec4 x;
+} xs;	/* not an array, should work */
-- 
2.1.0



More information about the Piglit mailing list