pan/bi: Store the architecture in the compiler context
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 12 Nov 2020 15:13:08 +0000 (16:13 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 13 Nov 2020 13:35:17 +0000 (14:35 +0100)
commit9f640c0f3dc4ef670f9a63cb30e5b5766ad3be6b
treef74fbb14492b5034b6f00f446b28becce5db0f14
parent0dd093a89fea15303e98ef70b0de8370d7e39fb5
pan/bi: Store the architecture in the compiler context

Some instructions differ between v6 and v7 and we'll need to know which
architecture we're compiling for if we want to generate the right
instructions.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7530>
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h