freedreno/ir3: add bary_ij as src for meta:tex_prefetch
authorRob Clark <robdclark@chromium.org>
Fri, 20 Mar 2020 18:50:46 +0000 (11:50 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Mar 2020 22:41:36 +0000 (22:41 +0000)
commitc6a879275345c8c0b4885a68cfa8d72c2193fb8a
tree40b75849521ca63c91497f68fd2b23d7c8ee4575
parenta0de0db0e44c4a7096f57b6c242c7ec139987aa5
freedreno/ir3: add bary_ij as src for meta:tex_prefetch

This way RA doesn't have to special case it in use/def accounting..

This gets rid of an extra level of split/collect, which shouldn't be
needed.  And interferes with scheduler trying to put tex-prefetches
after inputs but before other instructions.  (Otherwise it would have
to figure out which split/collects need to go before the tex-prefetch)

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