pan/bi: Allow specializing bifrost_nir_options by arch
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 6 Feb 2023 15:49:52 +0000 (10:49 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Mar 2023 23:53:45 +0000 (23:53 +0000)
commit540d556a8f43dcf95afd0007fe24f5cec5cbea0e
tree2ec7e6408dc9123acb3d03ff6bb26daf7eaeb575
parent8db30010dc15e013a4b7638c3337c6aebc6bb342
pan/bi: Allow specializing bifrost_nir_options by arch

We need different settings for Bifrost and Valhall. Keeping everything static
simplifies lifetimes.

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