freedreno/ir3: create fragcoord instructions in input block
authorRob Clark <robdclark@chromium.org>
Mon, 27 Jan 2020 16:26:04 +0000 (08:26 -0800)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Feb 2020 02:40:22 +0000 (02:40 +0000)
commit8d0e7d9a4c1cfe28b3cd2356e94e287e82821e1a
treec4b56364c729032b1537439fe1c1ba28a6b8d698
parentfb09020ef23cc87c1c3024add572cf0a571e8ddc
freedreno/ir3: create fragcoord instructions in input block

This was somehow working to create the instructions in a random block,
and use the value in other blocks, by dumb luck.  But two-pass-RA's
better choice of register assignment causes a couple dEQPs to start
failing without this fix:

dEQP-GLES3.functional.shaders.metamorphic.bubblesort_flag.variant_1
dEQP-GLES3.functional.shaders.metamorphic.bubblesort_flag.variant_2

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
src/freedreno/ir3/ir3_compiler_nir.c