[Piglit] [PATCH 1/3] shaders: test the vec4(mat3) constructor

Martin Peres martin.peres at linux.intel.com
Tue May 26 00:18:48 PDT 2015


This is currently problematic in mesa.

Signed-off-by: Martin Peres <martin.peres at linux.intel.com>
---
 tests/shaders/glsl-fs-vec4-mat3.shader_test | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 tests/shaders/glsl-fs-vec4-mat3.shader_test

diff --git a/tests/shaders/glsl-fs-vec4-mat3.shader_test b/tests/shaders/glsl-fs-vec4-mat3.shader_test
new file mode 100644
index 0000000..8e02148
--- /dev/null
+++ b/tests/shaders/glsl-fs-vec4-mat3.shader_test
@@ -0,0 +1,20 @@
+[require]
+GLSL >= 1.10
+
+[vertex shader]
+void main()
+{
+	gl_Position = gl_Vertex;
+}
+
+[fragment shader]
+void main()
+{
+	mat3 matrix3 = mat3(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9);
+
+	gl_FragColor = vec4(matrix3);
+}
+
+[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