From 49d07b9ae66fede4fd7cc22877d4e4a6a28fd5c2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 25 Feb 2026 13:39:19 -0500 Subject: [PATCH] ntv: run nir_remove_dead_variables during ntv_shader_prepare() Part-of: --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index 80fa0a835df..e1f95091ea2 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -5649,6 +5649,7 @@ ntv_shader_prepare(nir_shader *nir) NIR_PASS(_, nir, nir_inline_functions); nir_cleanup_functions(nir); optimize_nir(nir); + NIR_PASS(_, nir, nir_remove_dead_variables, nir_var_shader_temp, NULL); /* required until phi support is complete */ NIR_PASS(_, nir, nir_convert_from_ssa, true, false); nir_foreach_variable_in_shader(var, nir) {