freedreno/ir3/ra: fix target register calculation
authorRob Clark <robdclark@chromium.org>
Sat, 21 Mar 2020 18:07:35 +0000 (11:07 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Mar 2020 22:41:36 +0000 (22:41 +0000)
commitd99d358389ca95ce23cfccf67150cccc66ff6407
tree4e6dfd4d457ac7bd0d20e804b082cb06f83b8c4a
parentd20a06e40199f4082cea73a3636b87823c76ed2b
freedreno/ir3/ra: fix target register calculation

Account for the # of regs an instruction writes, and fix an off-by-one.

(We are about to replace this with calculating the register target using
the live-ranges, but in debugging that it was useful to assert() if it
chose a higher target.)

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