freedreno/ir3: fix location of inserted mov's
authorRob Clark <robdclark@chromium.org>
Mon, 6 Apr 2020 15:28:35 +0000 (08:28 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 20:47:28 +0000 (20:47 +0000)
commit0f22f85fe73f89b80851bb24936202c9bba97cc6
treee6c7756007f68fbe2cd3f6708f2dbcca70026bb2
parent908044ef4bf00daccfbcb037144c6ebe74d021c5
freedreno/ir3: fix location of inserted mov's

If the group pass must insert a mov to resolve conflicts, avoid the mov
appearing *after* the meta:collect whose src it is.

The current pre-RA scheduler doesn't really care about the initial
instruction order, but the new one will in some cases.

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