glsl: Treat gl_FragCoord as a varying even when it's a system value
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 19 Jul 2019 15:42:56 +0000 (10:42 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 29 Jul 2019 23:30:26 +0000 (23:30 +0000)
commit44268b1c72e327a812678f123000942083407944
treed808505bab90bd13dcb88cc38c75c4a0f21cfd07
parent169d896df2ac3882378c0323832c1253828f96fb
glsl: Treat gl_FragCoord as a varying even when it's a system value

This fixes glsl-fcoord-invariant-pass.shader_test on drivers that set
GLSLFragCoordIsSysVal which includes radeonsi among others.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/ast_to_hir.cpp