nir: Make nir_lower_wpos_ytransform() match FragCoord by location.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2016 16:31:49 +0000 (09:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 21:29:04 +0000 (14:29 -0700)
commit88ea960aa74402ea358d05b95709c3299002ad83
tree80e8a4fcc44a6679356850f73b27bb6983d2637e
parentc9192fcbd28063f1273917d258456a5cd38dd119
nir: Make nir_lower_wpos_ytransform() match FragCoord by location.

gl_FragCoord is a shader input with location == VARYING_SLOT_POS.
ARB_fragment_programs have an equivalent input at VARYING_SLOT_POS,
but it isn't called gl_FragCoord.  We do want to transform it.

Matching by location guarantees we catch both.

Fixes several fp tests on a branch which uses this pass on i965.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_lower_wpos_ytransform.c