# This test reproduces Mesa bugzilla #34691 [require] GLSL >= 1.20 [fragment shader] #version 120 void main() { mat2 a[2]; a[0][0][0] = 0; a[int(a[0][0][0])][0][1] = 1; if (a[0][0][1] == 1) gl_FragColor = vec4(0, 1, 0, 1); else gl_FragColor = vec4(1, 0, 0, 1); } [test] draw rect -1 -1 2 2 probe all rgba 0 1 0 1