[Piglit] [PATCH 5/5] glsl-1.20: Add negative outerProduct function call tests

Ian Romanick idr at freedesktop.org
Tue May 3 11:30:02 PDT 2011


From: Ian Romanick <ian.d.romanick at intel.com>

There are no overloads of outerProduct that take any of these types as
parameters.  Currently the bvec tests compile (thereby failing) on
Mesa.
---
 .../built-in-functions/outerProduct-bool.vert      |   10 ++++++++
 .../built-in-functions/outerProduct-bvec2.vert     |   10 ++++++++
 .../built-in-functions/outerProduct-bvec3.vert     |   10 ++++++++
 .../built-in-functions/outerProduct-bvec4.vert     |   10 ++++++++
 .../built-in-functions/outerProduct-float.vert     |   10 ++++++++
 .../built-in-functions/outerProduct-int.vert       |   10 ++++++++
 .../outerProduct-invalid-parameters.sh             |   24 ++++++++++++++++++++
 .../built-in-functions/outerProduct-mat2.vert      |   10 ++++++++
 .../built-in-functions/outerProduct-mat2x2.vert    |   10 ++++++++
 .../built-in-functions/outerProduct-mat2x3.vert    |   10 ++++++++
 .../built-in-functions/outerProduct-mat2x4.vert    |   10 ++++++++
 .../built-in-functions/outerProduct-mat3.vert      |   10 ++++++++
 .../built-in-functions/outerProduct-mat3x2.vert    |   10 ++++++++
 .../built-in-functions/outerProduct-mat3x3.vert    |   10 ++++++++
 .../built-in-functions/outerProduct-mat3x4.vert    |   10 ++++++++
 .../built-in-functions/outerProduct-mat4.vert      |   10 ++++++++
 .../built-in-functions/outerProduct-mat4x2.vert    |   10 ++++++++
 .../built-in-functions/outerProduct-mat4x3.vert    |   10 ++++++++
 .../built-in-functions/outerProduct-mat4x4.vert    |   10 ++++++++
 19 files changed, 204 insertions(+), 0 deletions(-)
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bool.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec2.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec3.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec4.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-float.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-int.vert
 create mode 100755 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-invalid-parameters.sh
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x2.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x3.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x4.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x2.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x3.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x4.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x2.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x3.vert
 create mode 100644 tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x4.vert

diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bool.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bool.vert
new file mode 100644
index 0000000..80d74e4
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bool.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(bool(0), bool(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec2.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec2.vert
new file mode 100644
index 0000000..ce07f09
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec2.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(bvec2(0), bvec2(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec3.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec3.vert
new file mode 100644
index 0000000..c55105e
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec3.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(bvec3(0), bvec3(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec4.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec4.vert
new file mode 100644
index 0000000..5e558e4
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec4.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(bvec4(0), bvec4(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-float.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-float.vert
new file mode 100644
index 0000000..171a544
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-float.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(float(0), float(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-int.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-int.vert
new file mode 100644
index 0000000..042e878
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-int.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(int(0), int(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-invalid-parameters.sh b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-invalid-parameters.sh
new file mode 100755
index 0000000..a7e1113
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-invalid-parameters.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+function emit_vs
+{
+    t=$1
+
+    cat > outerProduct-$t.vert <<EOF
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(${t}(0), ${t}(0));
+}
+EOF
+}
+
+for i in int float bool bvec2 bvec3 bvec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4
+do
+    emit_vs $i
+done
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2.vert
new file mode 100644
index 0000000..f35f29e
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat2(0), mat2(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x2.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x2.vert
new file mode 100644
index 0000000..d6a7eeb
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x2.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat2x2(0), mat2x2(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x3.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x3.vert
new file mode 100644
index 0000000..10eb3d4
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x3.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat2x3(0), mat2x3(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x4.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x4.vert
new file mode 100644
index 0000000..503a021
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat2x4.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat2x4(0), mat2x4(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3.vert
new file mode 100644
index 0000000..e634486
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat3(0), mat3(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x2.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x2.vert
new file mode 100644
index 0000000..abe73da
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x2.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat3x2(0), mat3x2(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x3.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x3.vert
new file mode 100644
index 0000000..ad62282
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x3.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat3x3(0), mat3x3(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x4.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x4.vert
new file mode 100644
index 0000000..8ee4983
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat3x4.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat3x4(0), mat3x4(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4.vert
new file mode 100644
index 0000000..93ed20e
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat4(0), mat4(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x2.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x2.vert
new file mode 100644
index 0000000..105e88e
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x2.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat4x2(0), mat4x2(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x3.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x3.vert
new file mode 100644
index 0000000..c780542
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x3.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat4x3(0), mat4x3(0));
+}
diff --git a/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x4.vert b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x4.vert
new file mode 100644
index 0000000..94a7c52
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-mat4x4.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * [end config]
+ */
+#version 120
+void main () {
+  gl_Position = vec4(0);
+  outerProduct(mat4x4(0), mat4x4(0));
+}
-- 
1.7.4



More information about the Piglit mailing list