From 6ed178ecd65c0c2e160d4ea35c1b4f56b737b7a2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 25 Feb 2026 12:53:47 -0500 Subject: [PATCH] ntv: run nir_cleanup_functions() in ntv_shader_prepare() this is better than leaving the inlined functions sitting around 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 6453543cf09..a9bb98e381f 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 @@ -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);