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

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


This is currently problematic in mesa.

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

diff --git a/tests/shaders/glsl-fs-ivec4-mat3.shader_test b/tests/shaders/glsl-fs-ivec4-mat3.shader_test
new file mode 100644
index 0000000..0c8f2e8
--- /dev/null
+++ b/tests/shaders/glsl-fs-ivec4-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(1, 2,3, 4, 5, 6, 7, 8, 9);
+
+	gl_FragColor = vec4(ivec4(matrix3)) / 10.0;
+}
+
+[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