From cc2f59d840bb3a6d9327ae9d4e0b868911da4fbc Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 16 Aug 2023 21:25:44 +0200 Subject: [PATCH] rusticl/kernel: optimize nir between lowering io and explicit types This is required to get rid of unneeded memory operations, like direct scratch stores/loads to the same location. Fixes: 66c6061491a ("rusticl/kernel: get rid of initial function_temp type lowering") Signed-off-by: Karol Herbst Part-of: --- src/gallium/frontends/rusticl/core/kernel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/frontends/rusticl/core/kernel.rs b/src/gallium/frontends/rusticl/core/kernel.rs index ff077b23d7b..d30ffd217b1 100644 --- a/src/gallium/frontends/rusticl/core/kernel.rs +++ b/src/gallium/frontends/rusticl/core/kernel.rs @@ -620,6 +620,8 @@ fn lower_and_optimize_nir( Some(glsl_get_cl_type_size_align), ); + opt_nir(nir, dev); + nir_pass!( nir, nir_lower_explicit_io,