pan/bi: Add src/dest fields to bifrost_instruction
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 3 Mar 2020 01:24:03 +0000 (20:24 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Mar 2020 14:35:37 +0000 (14:35 +0000)
commit230be61f201d07ac95e32a82e688a05eb4093fcc
tree11001fcebfcfb3ab9434988e5196441ce0d157a1
parente7dc2a7b9beeb3fe9af00033d972f89bf436bb68
pan/bi: Add src/dest fields to bifrost_instruction

...along with some helpers to generate indices. The indexing scheme is
mostly a copypaste from Midgard, except we specifically reserve 0 as the
sentinel (midgard uses ~0 for this which has always been a pain point).

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