[Piglit] [PATCH V2 7/9] tests/spec: ARB_arrays_of_arrays uniform tests
Timothy Arceri
t_arceri at yahoo.com.au
Tue Jan 14 00:20:05 PST 2014
---
.../compiler/uniform-array-array-var.vert | 15 ++++++++++++++
.../compiler/uniform-array-var-array.vert | 15 ++++++++++++++
.../compiler/uniform-unsized-array-array-var.vert | 15 ++++++++++++++
.../compiler/uniform-unsized-array-var-array.vert | 15 ++++++++++++++
.../uniform-unsized-invalid-array-array-var.vert | 21 ++++++++++++++++++++
.../uniform-unsized-invalid-array-array-var2.vert | 21 ++++++++++++++++++++
.../uniform-unsized-invalid-array-var-array.vert | 21 ++++++++++++++++++++
.../uniform-unsized-invalid-array-var-array2.vert | 21 ++++++++++++++++++++
.../uniform-unsized-invalid-var-array-array.vert | 21 ++++++++++++++++++++
.../uniform-unsized-invalid-var-array-array2.vert | 21 ++++++++++++++++++++
.../compiler/uniform-unsized-var-array-array.vert | 15 ++++++++++++++
.../compiler/uniform-var-array-array.vert | 15 ++++++++++++++
12 files changed, 216 insertions(+)
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-array-array-var.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-array-var-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-array-array-var.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-array-var-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-array-var.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-array-var2.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-var-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-var-array2.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-var-array-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-var-array-array2.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-var-array-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/uniform-var-array-array.vert
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-array-array-var.vert
new file mode 100644
index 0000000..8a038cc
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-array-array-var.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4[3][1] an_array;
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-array-var-array.vert
new file mode 100644
index 0000000..588152e
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-array-var-array.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4 [1] an_array[1];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-array-array-var.vert
new file mode 100644
index 0000000..a813157
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-array-array-var.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4[][1] an_array;
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-array-var-array.vert
new file mode 100644
index 0000000..e801f65
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-array-var-array.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4 [1] an_array[];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-array-var.vert
new file mode 100644
index 0000000..76a6e4c
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-array-var.vert
@@ -0,0 +1,21 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ *
+ * For ARB_arrays_of_arrays spec:
+ *
+ * "For unsized arrays, only the outermost dimension can be lacking a
+ * size. A type that includes an unknown array size cannot be formed into
+ * an array until it gets an explicit size."
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4[][] an_array;
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-array-var2.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-array-var2.vert
new file mode 100644
index 0000000..78b3fed
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-array-var2.vert
@@ -0,0 +1,21 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ *
+ * For ARB_arrays_of_arrays spec:
+ *
+ * "For unsized arrays, only the outermost dimension can be lacking a
+ * size. A type that includes an unknown array size cannot be formed into
+ * an array until it gets an explicit size."
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4[1][] an_array;
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-var-array.vert
new file mode 100644
index 0000000..7af032a
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-var-array.vert
@@ -0,0 +1,21 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ *
+ * For ARB_arrays_of_arrays spec:
+ *
+ * "For unsized arrays, only the outermost dimension can be lacking a
+ * size. A type that includes an unknown array size cannot be formed into
+ * an array until it gets an explicit size."
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4 [] an_array[];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-var-array2.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-var-array2.vert
new file mode 100644
index 0000000..fcb0239
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-array-var-array2.vert
@@ -0,0 +1,21 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ *
+ * For ARB_arrays_of_arrays spec:
+ *
+ * "For unsized arrays, only the outermost dimension can be lacking a
+ * size. A type that includes an unknown array size cannot be formed into
+ * an array until it gets an explicit size."
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4 [] an_array[1];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-var-array-array.vert
new file mode 100644
index 0000000..83da6cc
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-var-array-array.vert
@@ -0,0 +1,21 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ *
+ * For ARB_arrays_of_arrays spec:
+ *
+ * "For unsized arrays, only the outermost dimension can be lacking a
+ * size. A type that includes an unknown array size cannot be formed into
+ * an array until it gets an explicit size."
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4 an_array[][];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-var-array-array2.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-var-array-array2.vert
new file mode 100644
index 0000000..49aacce
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-invalid-var-array-array2.vert
@@ -0,0 +1,21 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ *
+ * For ARB_arrays_of_arrays spec:
+ *
+ * "For unsized arrays, only the outermost dimension can be lacking a
+ * size. A type that includes an unknown array size cannot be formed into
+ * an array until it gets an explicit size."
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4 an_array[1][];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-var-array-array.vert
new file mode 100644
index 0000000..99a52a1
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-unsized-var-array-array.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4 an_array[][1];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/uniform-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/uniform-var-array-array.vert
new file mode 100644
index 0000000..95215bb
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/uniform-var-array-array.vert
@@ -0,0 +1,15 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+uniform vec4 an_array[1][1];
+
+void main()
+{
+ gl_Position = an_array[0][0];
+}
--
1.7.9.5
More information about the Piglit
mailing list