pan/bi: Add a helper to convert to old-style nodes
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 12 Dec 2020 01:03:46 +0000 (20:03 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 23 Dec 2020 18:29:36 +0000 (13:29 -0500)
commitb85f317017d4560fd98b09468aef755bd3fd3cd6
treeecf5a617d7bdd87b5dd3095f2e79fccbac916d86
parent2d9147dae45115fbd5481a9811fe0b8de400d1e2
pan/bi: Add a helper to convert to old-style nodes

RA, DCE, and liveness assume that SSA and non-SSA normal indices are
indexed from 1 in a shared address space, with a maximum given by
bi_max_temp. As a stop gap, let's translate bi_index to old style
node numbers so those passes can be updated cleanly.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8215>
src/panfrost/bifrost/compiler.h