From 236c7ca8b3cd25b99f5b2ba3fd74efb0d10c75cb Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 5 Oct 2022 09:33:37 +0200 Subject: [PATCH] radeonsi: use nir_lower_explicit_io to get rid of mem_shared deref MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can get them through GLSL compute or SPIR-V. Reviewed-by: Mihai Preda Reviewed-by: Dave Airlie Reviewed-by: Qiang Yu Reviewed-by: Marek Olšák Acked-by: Samuel Pitoiset Part-of: --- src/gallium/drivers/radeonsi/si_shader_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 135f8711a38..04722413240 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -342,6 +342,8 @@ char *si_finalize_nir(struct pipe_screen *screen, void *nirptr) nir_lower_io_passes(nir); + NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_mem_shared, nir_address_format_32bit_offset); + /* Remove dead derefs, so that we can remove uniforms. */ NIR_PASS_V(nir, nir_opt_dce);