ntv: run nir_remove_dead_variables during ntv_shader_prepare()

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40102>
This commit is contained in:
Mike Blumenkrantz 2026-02-25 13:39:19 -05:00 committed by Marge Bot
parent a6928eb015
commit 49d07b9ae6

View file

@ -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) {