While running the GLES3 dEQP tests on ANGLE the Intel Mesa driver, many of the tests in dEQP-GLES3.functional.shaders.conversions.matrix_combine.* segfault in the driver in glLinkProgram. This was running on an Ubuntu variant with the following: OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.5.9 OpenGL core profile shading language version string: 3.30 I was able to repro the crash using the following vertex shader: #version 330 in vec4 vPosition; in vec3 v1; in vec3 v2; in vec2 v3; out mat4x2 out0; void main(){ (gl_Position = vPosition); (out0 = mat4x2(v1, v2, v3)); } and the following fragment shader: #version 330 in mat4x2 out0; out vec4 FragColor; void main(){ (FragColor = vec4(1.0, out0[1][1], 0.0, 1.0)); }
Please update your Mesa installation. This bug was fixed by the commit listed below. This commit is in Mesa 10.6.0 and all later releases. It should have been cherry picked to the 10.5 release branch at that time, and I'm not sure why it was not... probably just an oversight. Note that the 10.5 and 10.6 release series are no longer actively maintained. commit 3cbefe3cf4c745c7c681cfc18a1e47461fec91db Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com> AuthorDate: Thu Nov 27 09:39:05 2014 +0100 Commit: Samuel Iglesias Gonsalvez <siglesias@igalia.com> CommitDate: Wed Apr 15 08:11:18 2015 +0200 glsl: fix assignment of multiple scalar and vecs to matrices. When a vec has more elements than row components in a matrix, the code could end up failing an assert inside assign_to_matrix_column(). This patch makes sure that when there is still room in the matrix for more elements (but in other columns of the matrix), the data is actually assigned. This patch fixes the following dEQP test: dEQP-GLES3.functional.shaders.conversions.matrix_combine.float_bvec4_ivec2_bool_to_mat4x2_vertex dEQP-GLES3.functional.shaders.conversions.matrix_combine.float_bvec4_ivec2_bool_to_mat4x2_fragment Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Thank you for the quick answer and apologies for the redundant bug report. I will update to the latest stable version (and maybe try to check with latest master) before reporting additional bugs.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.