More matrix compilation tests
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 25 Mar 2010 20:41:32 +0000 (13:41 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 25 Mar 2010 20:41:32 +0000 (13:41 -0700)
tests/matrix-09.glsl [new file with mode: 0644]
tests/matrix-10.glsl [new file with mode: 0644]

diff --git a/tests/matrix-09.glsl b/tests/matrix-09.glsl
new file mode 100644 (file)
index 0000000..18afbca
--- /dev/null
@@ -0,0 +1,11 @@
+/* FAIL - matrix-to-matrix constructors are not available in GLSL 1.10 */
+
+uniform mat3 a;
+
+void main()
+{
+    mat2 m;
+
+    m = mat2(a);
+    gl_Position = gl_Vertex;
+}
diff --git a/tests/matrix-10.glsl b/tests/matrix-10.glsl
new file mode 100644 (file)
index 0000000..20b5518
--- /dev/null
@@ -0,0 +1,12 @@
+#version 120
+/* PASS */
+
+uniform mat3 a;
+
+void main()
+{
+    mat2 m;
+
+    m = mat2(a);
+    gl_Position = gl_Vertex;
+}