[Piglit] [PATCH 17/23] arb_shading_language_420pack: Test reversed row/column in matrix initializer

Matt Turner mattst88 at gmail.com
Sat Jun 29 19:43:10 PDT 2013


---
 ...initializer-nonsquare-matrix-reversed-row-column.frag | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-nonsquare-matrix-reversed-row-column.frag

diff --git a/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-nonsquare-matrix-reversed-row-column.frag b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-nonsquare-matrix-reversed-row-column.frag
new file mode 100644
index 0000000..0a87e1c
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-nonsquare-matrix-reversed-row-column.frag
@@ -0,0 +1,16 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ */
+
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+
+void main() {
+    // Illegal since mat4x2 consists of 4x vec2 columns, but 2x vec4 columns
+    // given as initializer
+    mat4x2 c = { vec4(0.0), vec4(1.0) };
+    gl_FragColor = vec4(1.0);
+}
-- 
1.8.1.5



More information about the Piglit mailing list