[Piglit] [PATCH 1/7] tests/spec: ARB_arrays_of_arrays initializer and constructor tests
Timothy Arceri
t_arceri at yahoo.com.au
Mon Jan 6 15:05:13 PST 2014
Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
---
tests/all.tests | 7 +++++++
.../compiler/constructor-array-array-var.vert | 17 +++++++++++++++++
.../compiler/constructor-array-var-array.vert | 17 +++++++++++++++++
.../compiler/constructor-invalid.vert | 17 +++++++++++++++++
.../compiler/constructor-invalid2.vert | 16 ++++++++++++++++
.../compiler/constructor-var-array-array.vert | 17 +++++++++++++++++
.../compiler/initialization-invalid.vert | 17 +++++++++++++++++
.../compiler/initialization-invalid2.vert | 17 +++++++++++++++++
.../compiler/initialization-invalid3.vert | 17 +++++++++++++++++
.../compiler/initialization-invalid4.vert | 17 +++++++++++++++++
.../compiler/initializer-array-array-var.vert | 17 +++++++++++++++++
.../compiler/initializer-array-array-var2.vert | 17 +++++++++++++++++
.../compiler/initializer-array-var-array.vert | 17 +++++++++++++++++
.../compiler/initializer-array-var-array2.vert | 17 +++++++++++++++++
.../compiler/initializer-var-array-array.vert | 17 +++++++++++++++++
.../compiler/initializer-var-array-array2.vert | 17 +++++++++++++++++
16 files changed, 261 insertions(+)
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/constructor-array-array-var.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/constructor-array-var-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/constructor-invalid.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/constructor-invalid2.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/constructor-var-array-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid2.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid3.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid4.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initializer-array-array-var.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initializer-array-array-var2.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initializer-array-var-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initializer-array-var-array2.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initializer-var-array-array.vert
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/initializer-var-array-array2.vert
diff --git a/tests/all.tests b/tests/all.tests
index edf066b..bc2314b 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -1065,6 +1065,13 @@ import_glsl_parser_tests(spec['AMD_conservative_depth'],
os.path.join(testsDir, 'spec', 'amd_conservative_depth'),
[''])
+# Group ARB_arrays_of_arrays
+arb_arrays_of_arrays = Group()
+spec['ARB_arrays_of_arrays'] = arb_arrays_of_arrays
+import_glsl_parser_tests(arb_arrays_of_arrays,
+ os.path.join(testsDir, 'spec', 'arb_arrays_of_arrays'),
+ ['compiler'])
+
# Group ARB_point_sprite
arb_point_sprite = Group()
spec['ARB_point_sprite'] = arb_point_sprite
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/constructor-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/constructor-array-array-var.vert
new file mode 100644
index 0000000..5b88054
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/constructor-array-array-var.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4[3][2] 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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/constructor-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/constructor-array-var-array.vert
new file mode 100644
index 0000000..03fd090
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/constructor-array-var-array.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4[2] a[3] = 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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/constructor-invalid.vert b/tests/spec/arb_arrays_of_arrays/compiler/constructor-invalid.vert
new file mode 100644
index 0000000..025fa01
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/constructor-invalid.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+void main()
+{
+ vec4[3][3] a = vec4[3][3](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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/constructor-invalid2.vert b/tests/spec/arb_arrays_of_arrays/compiler/constructor-invalid2.vert
new file mode 100644
index 0000000..182a03a
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/constructor-invalid2.vert
@@ -0,0 +1,16 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+void main()
+{
+ vec4[3][2] a = vec4[3][2](vec4[2](vec4(0.0), vec4(1.0)),
+ vec4[2](vec4(0.0), vec4(1.0)));
+
+ gl_Position = a[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/constructor-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/constructor-var-array-array.vert
new file mode 100644
index 0000000..847e4ed
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/constructor-var-array-array.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4 a[3][2] = 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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid.vert b/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid.vert
new file mode 100644
index 0000000..f6870a0
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+void main()
+{
+ vec4[4][2] 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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid2.vert b/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid2.vert
new file mode 100644
index 0000000..6b6b4ca
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid2.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+void main()
+{
+ vec4 a[2][2] = {{ vec4(0.0), vec4(1.0) },
+ { vec4(0.0), vec4(1.0) },
+ { vec4(0.0), vec4(1.0) } };
+
+ gl_Position = a[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid3.vert b/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid3.vert
new file mode 100644
index 0000000..4f1e491
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid3.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+void main()
+{
+ vec4 a[3][3] = {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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid4.vert b/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid4.vert
new file mode 100644
index 0000000..954568d
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initialization-invalid4.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+void main()
+{
+ vec4 a[2][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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-array-var.vert
new file mode 100644
index 0000000..c4e0c09
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-array-var.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4[3][2] a = {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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-array-var2.vert b/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-array-var2.vert
new file mode 100644
index 0000000..49543db
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-array-var2.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4[3][2] a = {{ vec4(0.0), vec4(1.0) },
+ { vec4(0.0), vec4(1.0) },
+ { vec4(0.0), vec4(1.0) } };
+
+ gl_Position = a[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-var-array.vert
new file mode 100644
index 0000000..f7836d1
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-var-array.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4[2] a[3] = {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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-var-array2.vert b/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-var-array2.vert
new file mode 100644
index 0000000..f5bdd82
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initializer-array-var-array2.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4[2] a[3] = {{ vec4(0.0), vec4(1.0) },
+ { vec4(0.0), vec4(1.0) },
+ { vec4(0.0), vec4(1.0) } };
+
+ gl_Position = a[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initializer-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/initializer-var-array-array.vert
new file mode 100644
index 0000000..df3a66e
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initializer-var-array-array.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4 a[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[2][1];
+}
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/initializer-var-array-array2.vert b/tests/spec/arb_arrays_of_arrays/compiler/initializer-var-array-array2.vert
new file mode 100644
index 0000000..cdf0ac8
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/initializer-var-array-array2.vert
@@ -0,0 +1,17 @@
+/* [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
+
+void main()
+{
+ vec4 a[3][2] = {{ vec4(0.0), vec4(1.0) },
+ { vec4(0.0), vec4(1.0) },
+ { vec4(0.0), vec4(1.0) } };
+
+ gl_Position = a[2][1];
+}
--
1.7.9.5
More information about the Piglit
mailing list