From 65298586b8073ed8dd5b9b05345a42fcad15dc39 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Wed, 26 Jun 2024 07:55:28 -0400 Subject: [PATCH] ir3: Use elect_any_ir3 in preambles This fixes SP_FS_PREFETCH_CNTL::ENDOFQUAD not being used when there's a preamble and texture prefetches. Part-of: --- src/freedreno/ir3/ir3_nir_opt_preamble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_nir_opt_preamble.c b/src/freedreno/ir3/ir3_nir_opt_preamble.c index 18677913e22..587f492fc6b 100644 --- a/src/freedreno/ir3/ir3_nir_opt_preamble.c +++ b/src/freedreno/ir3/ir3_nir_opt_preamble.c @@ -444,7 +444,7 @@ ir3_nir_lower_preamble(nir_shader *nir, struct ir3_shader_variant *v) nir_if *outer_if = nir_push_if(b, nir_preamble_start_ir3(b, 1)); { - nir_if *inner_if = nir_push_if(b, nir_elect(b, 1)); + nir_if *inner_if = nir_push_if(b, nir_elect_any_ir3(b, 1)); { nir_call_instr *call = nir_call_instr_create(nir, main->preamble); nir_builder_instr_insert(b, &call->instr);