Commit f8f88eeb authored by Danylo Piliaiev's avatar Danylo Piliaiev Committed by Jordan Justen

glsl-1.20: test 'invariant' propagation influence on globals matching

Global variable defined in several shaders of one stage should not cause
"mismatched qualifiers" linking error when invariance is being propagated
on it in one shader.
Signed-off-by: Danylo Piliaiev's avatarDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Jordan Justen's avatarJordan Justen <jordan.l.justen@intel.com>
parent dd0c132e
[require]
GLSL >= 1.20
# This test exercises a Mesa GLSL bug where 'invariant' qualifier
# propagates on one definition of the global variable defined in several
# shaders of one stage, causing linking error due to qualifier mismatch.
[vertex shader]
#version 120
float x;
[vertex shader]
#version 120
float x;
invariant gl_Position;
void main()
{
gl_Position = vec4(x);
}
[fragment shader]
#version 120
void main()
{
}
[test]
link success
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