ir3/ra: Fix array reg liveness in scalar pass
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 20 Nov 2020 23:27:34 +0000 (00:27 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 23 Nov 2020 11:33:13 +0000 (11:33 +0000)
commit76ade57fa6585a388fe81f8a3a9235230628a727
treee19f93aae4185201d67ccb151eb59e6ed3124370
parent88b5a2b80bc60f0d7416275835a264c7ce19b656
ir3/ra: Fix array reg liveness in scalar pass

Assigning an array reg removes IR3_REG_ARRAY, which means that
definitions and uses can't be tracked back to the array register's name
and liveness for the components of the array aren't correctly
calculated. To fix this we delay assigning array registers until the
scalar pass.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7711>
src/freedreno/ir3/ir3_ra.c