Commit abd7d094 authored by Gordon Jin's avatar Gordon Jin Committed by Ian Romanick

Test implicitly sized arrays where only element 0 is accessed

Reproduces Mesa bugzilla #34198.
Signed-off-by: default avatarIan Romanick <ian.d.romanick@intel.com>
parent 8c11f568
......@@ -390,6 +390,7 @@ add_shader_generic(shaders, 'glsl-fs-if-greater-equal')
add_shader_generic(shaders, 'glsl-fs-if-texture2d-discard')
add_shader_generic(shaders, 'glsl-fs-implicit-array-size-01')
add_shader_generic(shaders, 'glsl-fs-implicit-array-size-02')
add_shader_generic(shaders, 'glsl-fs-implicit-array-size-03')
add_shader_generic(shaders, 'glsl-fs-log')
add_shader_generic(shaders, 'glsl-fs-log2')
add_plain_test(shaders, 'glsl-fs-loop')
......
[require]
# This test reproduces Mesa bugzilla #34198.
GLSL >= 1.20
[fragment shader]
void myfunc()
{
float a[];
a[0] = 1.0;
gl_FragColor = vec4(0.0, a[0], 0.0, 1.0);
}
void main()
{
myfunc();
}
[test]
draw rect -1 -1 2 2
probe all rgba 0 1.0 0 1.0
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