From f8dd64739ed4e085d543a6bb602175f37145e377 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 26 Oct 2022 16:59:19 +0200 Subject: [PATCH] radeonsi: do not DCE texture vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Karol Herbst Reviewed-by: Jesse Natalie Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_shader_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 04722413240..6fac0ae9f5d 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -350,6 +350,7 @@ char *si_finalize_nir(struct pipe_screen *screen, void *nirptr) /* Remove uniforms because those should have been lowered to UBOs already. */ nir_foreach_variable_with_modes_safe(var, nir, nir_var_uniform) { if (!glsl_type_get_image_count(var->type) && + !glsl_type_get_texture_count(var->type) && !glsl_type_get_sampler_count(var->type)) exec_node_remove(&var->node); }