Commit ce448833 authored by Gordon Jin's avatar Gordon Jin Committed by Ian Romanick
Browse files

glsl-1.20: Access component of array-of-matrix


Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34691
parent ee775a79
# This test reproduces Mesa bugzilla #34691
[require]
GLSL >= 1.20
[fragment shader]
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment