ntv: run nir_cleanup_functions() in ntv_shader_prepare()

this is better than leaving the inlined functions sitting around

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40102>
This commit is contained in:
Mike Blumenkrantz 2026-02-25 12:53:47 -05:00 committed by Marge Bot
parent 102fa924c2
commit 6ed178ecd6

View file

@ -5647,6 +5647,7 @@ ntv_shader_prepare(nir_shader *nir)
NIR_PASS(_, nir, nir_split_per_member_structs);
NIR_PASS(_, nir, nir_lower_returns);
NIR_PASS(_, nir, nir_inline_functions);
nir_cleanup_functions(nir);
optimize_nir(nir);
/* required until phi support is complete */
NIR_PASS(_, nir, nir_convert_from_ssa, true, false);