pan/bi: Make BIR_INDEX_ZERO less special
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 27 Nov 2020 20:43:14 +0000 (15:43 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 23 Dec 2020 18:15:10 +0000 (13:15 -0500)
commitd93995fd2bc0a1dd7ee324f41dd15d412784c69e
tree45798acb687e31b977538ec5b4fa3e82be781540
parent0f0bb87e9d41285b08a0486971709b892c83c8e6
pan/bi: Make BIR_INDEX_ZERO less special

It can be implemented as a constant that just shifts beyond the 64-bits
available for the instruction, and then we can avoid special handling in
a bunch of places.

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