From 59a547cba4aac7f58972697ed0087cd3741416f7 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Fri, 3 Apr 2026 08:18:08 +0200 Subject: [PATCH] ir3: call nir_io_add_intrinsic_xfb_info after IO lowering Needed by nir_opt_varyings. Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3_nir.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index 756240efdb6..7148ed0a221 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -957,6 +957,11 @@ ir3_nir_lower_io(nir_shader *s) nir_var_shader_in | nir_var_shader_out, &(nir_remove_dead_variables_options) {}); + if (s->xfb_info) { + NIR_PASS(_, s, nir_opt_constant_folding); + NIR_PASS(_, s, nir_io_add_intrinsic_xfb_info); + } + s->info.io_lowered = true; }