diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-03 14:27:05 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-05 14:35:38 +0000 |
commit | 0b26cb194cc433a9910247051024bd6468d9b05c (patch) | |
tree | b21a14aad366bdeb7d151f191ab1446563deb19e /src/panfrost/bifrost/cmdline.c | |
parent | 07228a6895b4b57efaf55e7e6b180e308ceab879 (diff) |
pan/bi: Add quirks system
Modeled after the Midgard system. Already we know of two
compiler-visible differences between G52 and G71, so let's keep track so
we can eventually port the compiler to other Bifrost systems.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
Diffstat (limited to 'src/panfrost/bifrost/cmdline.c')
-rw-r--r-- | src/panfrost/bifrost/cmdline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/panfrost/bifrost/cmdline.c b/src/panfrost/bifrost/cmdline.c index fdeab59e15c..bf55ded7df8 100644 --- a/src/panfrost/bifrost/cmdline.c +++ b/src/panfrost/bifrost/cmdline.c @@ -65,7 +65,9 @@ compile_shader(char **argv) NIR_PASS_V(nir[i], gl_nir_lower_buffers, prog); NIR_PASS_V(nir[i], nir_opt_constant_folding); - bifrost_compile_shader_nir(nir[i], &compiled); + + unsigned product_id = 0x7212; /* Mali G52 */ + bifrost_compile_shader_nir(nir[i], &compiled, product_id); } } |