Module: Mesa
Branch: main
Commit: 66c6061491a7546349c04c40cbae1d23a07b5906
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=66c6061491a7546349c04c40cbae1d23a07b5906

Author: Karol Herbst <[email protected]>
Date:   Thu Aug  3 14:13:27 2023 +0200

rusticl/kernel: get rid of initial function_temp type lowering

It's not needed and causes some issues with generic memory.

Fixes: 01cb01a7ee9 ("rusticl/kernel: only handle function_temp memory before 
lowering printf")
Signed-off-by: Karol Herbst <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24470>

---

 src/gallium/frontends/rusticl/core/kernel.rs | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/gallium/frontends/rusticl/core/kernel.rs 
b/src/gallium/frontends/rusticl/core/kernel.rs
index 9c567420bec..867dc90d1a4 100644
--- a/src/gallium/frontends/rusticl/core/kernel.rs
+++ b/src/gallium/frontends/rusticl/core/kernel.rs
@@ -440,12 +440,6 @@ fn lower_and_optimize_nir(
     nir.sweep_mem();
 
     nir_pass!(nir, nir_dedup_inline_samplers);
-    nir_pass!(
-        nir,
-        nir_lower_vars_to_explicit_types,
-        nir_variable_mode::nir_var_function_temp,
-        Some(glsl_get_cl_type_size_align),
-    );
 
     let mut printf_opts = nir_lower_printf_options::default();
     printf_opts.set_treat_doubles_as_floats(false);

Reply via email to