[Piglit] [PATCH 2/6] nv_non_square_matrices: Add positive compile tests

Rafal Mielniczuk rafal.mielniczuk2 at gmail.com
Wed Feb 26 08:23:21 PST 2014


These tests check matrix and vector multiplication
---
 .../compiler/mat2x3-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat2x4-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat3x2-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat3x4-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat4x2-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat4x3-vector-multiplication.vert               | 12 ++++++++++++
 6 files changed, 72 insertions(+)
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat2x3-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat2x4-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat3x2-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat3x4-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat4x2-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat4x3-vector-multiplication.vert

diff --git a/tests/spec/nv_non_square_matrices/compiler/mat2x3-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat2x3-vector-multiplication.vert
new file mode 100644
index 0000000..3250a54
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat2x3-vector-multiplication.vert
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat2x3 u;
+attribute vec2 v;
+void main() {
+    gl_Position = vec4(u * v, 1.0);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat2x4-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat2x4-vector-multiplication.vert
new file mode 100644
index 0000000..929fd94
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat2x4-vector-multiplication.vert
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat2x4 u;
+attribute vec2 v;
+void main() {
+    gl_Position = vec4(u * v);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat3x2-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat3x2-vector-multiplication.vert
new file mode 100644
index 0000000..f452d68
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat3x2-vector-multiplication.vert
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat3x2 u;
+attribute vec3 v;
+void main() {
+    gl_Position = vec4(u * v, 1.0, 1.0);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat3x4-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat3x4-vector-multiplication.vert
new file mode 100644
index 0000000..f787748
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat3x4-vector-multiplication.vert
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat3x4 u;
+attribute vec3 v;
+void main() {
+    gl_Position = vec4(u * v);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat4x2-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat4x2-vector-multiplication.vert
new file mode 100644
index 0000000..1c9f0a8
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat4x2-vector-multiplication.vert
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat4x2 u;
+attribute vec4 v;
+void main() {
+    gl_Position = vec4(u * v, 1.0, 1.0);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat4x3-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat4x3-vector-multiplication.vert
new file mode 100644
index 0000000..ce1e8f0
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat4x3-vector-multiplication.vert
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat4x3 u;
+attribute vec4 v;
+void main() {
+    gl_Position = vec4(u * v, 1.0);
+}
-- 
1.9.0



More information about the Piglit mailing list