[Piglit] [PATCH 3/7] tests/spec: ARB_arrays_of_arrays input and output tests
Timothy Arceri
t_arceri at yahoo.com.au
Mon Jan 6 15:05:15 PST 2014
Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
---
.../compiler/input-array-array-var.vert | 15 +++++++++++++++
.../compiler/input-array-var-array.vert | 15 +++++++++++++++
.../compiler/input-var-array-array.vert | 15 +++++++++++++++
.../compiler/output-array-array-var.frag | 19 +++++++++++++++++++
.../compiler/output-array-array-var.vert | 19 +++++++++++++++++++
.../compiler/output-array-var-array.frag | 19 +++++++++++++++++++
.../compiler/output-array-var-array.vert | 19 +++++++++++++++++++
.../compiler/output-var-array-array.frag | 19 +++++++++++++++++++
.../compiler/output-var-array-array.vert | 19 +++++++++++++++++++
9 files changed, 159 insertions(+)
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/input-array-array-var.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/input-array-var-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/input-var-array-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/output-array-array-var.frag
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/output-array-array-var.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/output-array-var-array.frag
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/output-array-var-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/output-var-array-array.frag
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/output-var-array-array.vert
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/input-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/input-array-array-var.vert
new file mode 100644
index 0000000..cd945bf
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/input-array-array-var.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.50
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 150
+#extension GL_ARB_arrays_of_arrays: enable
+
+in vec4[3][1] an_array;
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/input-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/input-array-var-array.vert
new file mode 100644
index 0000000..1f234aa
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/input-array-var-array.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.50
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 150
+#extension GL_ARB_arrays_of_arrays: enable
+
+in vec4[1] an_array[3];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/input-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/input-var-array-array.vert
new file mode 100644
index 0000000..0f1e85d
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/input-var-array-array.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.50
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 150
+#extension GL_ARB_arrays_of_arrays: enable
+
+in vec4 an_array[3][1];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/output-array-array-var.frag b/tests/spec/arb_arrays_of_arrays/compiler/output-array-array-var.frag
new file mode 100644
index 0000000..51e3206
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/output-array-array-var.frag
@@ -0,0 +1,19 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.50
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 150
+#extension GL_ARB_arrays_of_arrays: enable
+
+out vec4[3][2] a;
+
+void main()
+{
+ a = vec4[3][2](vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)));
+
+ gl_FragData[0] = vec4(0.0);
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/output-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/output-array-array-var.vert
new file mode 100644
index 0000000..3d0a5ee
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/output-array-array-var.vert
@@ -0,0 +1,19 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 130
+#extension GL_ARB_arrays_of_arrays: enable
+
+out vec4[3][2] a;
+
+void main()
+{
+ a = vec4[3][2](vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)));
+
+ gl_Position = a[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/output-array-var-array.frag b/tests/spec/arb_arrays_of_arrays/compiler/output-array-var-array.frag
new file mode 100644
index 0000000..f887a04
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/output-array-var-array.frag
@@ -0,0 +1,19 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.50
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 150
+#extension GL_ARB_arrays_of_arrays: enable
+
+out vec4[2] a[3];
+
+void main()
+{
+ a = vec4[3][2](vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)));
+
+ gl_FragData[0] = vec4(0.0);
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/output-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/output-array-var-array.vert
new file mode 100644
index 0000000..d9772e1
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/output-array-var-array.vert
@@ -0,0 +1,19 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 130
+#extension GL_ARB_arrays_of_arrays: enable
+
+out vec4[2] a[3];
+
+void main()
+{
+ a = vec4[3][2](vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)));
+
+ gl_Position = a[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/output-var-array-array.frag b/tests/spec/arb_arrays_of_arrays/compiler/output-var-array-array.frag
new file mode 100644
index 0000000..13f1f5f
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/output-var-array-array.frag
@@ -0,0 +1,19 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.50
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 150
+#extension GL_ARB_arrays_of_arrays: enable
+
+out vec4 a[3][2];
+
+void main()
+{
+ a = vec4[3][2](vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)));
+
+ gl_FragData[0] = vec4(0.0);
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/output-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/output-var-array-array.vert
new file mode 100644
index 0000000..9070dcd
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/output-var-array-array.vert
@@ -0,0 +1,19 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 130
+#extension GL_ARB_arrays_of_arrays: enable
+
+out vec4 a[3][2];
+
+void main()
+{
+ a = vec4[3][2](vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)));
+
+ gl_Position = a[0][0];
+}
--
1.7.9.5
More information about the Piglit
mailing list