[Piglit] [PATCH 2/3] shaders: test the vec4(mat2) constructor
Martin Peres
martin.peres at linux.intel.com
Tue May 26 00:18:49 PDT 2015
This is currently problematic in mesa.
Signed-off-by: Martin Peres <martin.peres at linux.intel.com>
---
tests/shaders/glsl-fs-vec4-mat2.shader_test | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 tests/shaders/glsl-fs-vec4-mat2.shader_test
diff --git a/tests/shaders/glsl-fs-vec4-mat2.shader_test b/tests/shaders/glsl-fs-vec4-mat2.shader_test
new file mode 100644
index 0000000..50f07ae
--- /dev/null
+++ b/tests/shaders/glsl-fs-vec4-mat2.shader_test
@@ -0,0 +1,20 @@
+[require]
+GLSL >= 1.10
+
+[vertex shader]
+void main()
+{
+ gl_Position = gl_Vertex;
+}
+
+[fragment shader]
+void main()
+{
+ mat2 matrix2 = mat2(0.1, 0.2, 0.3, 0.4);
+
+ gl_FragColor = vec4(matrix2);
+}
+
+[test]
+draw rect -1 -1 2 2
+probe all rgba 0.1 0.2 0.3 0.4
--
2.4.1
More information about the Piglit
mailing list