freedreno/ir3/ra: only assign array base in first pass
authorRob Clark <robdclark@chromium.org>
Tue, 28 Apr 2020 00:00:17 +0000 (17:00 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 20:06:49 +0000 (20:06 +0000)
commit656051d735c949021e7eb206b6c4a633cc76936f
treee26d0086dd58c77ab8156e11cb861c77a14e426e
parent3d8ec9676261740404a06afe992adbffd0123a00
freedreno/ir3/ra: only assign array base in first pass

In particular, we specifically don't want to let the base change between
passes, as it could end up conflicting with registers assigned in the
first pass.

Mostly-closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2838
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4780>
src/freedreno/ir3/ir3_ra.c