From a35f26a98378950d0b3040438f7a08df4a8036c2 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 25 Nov 2025 16:16:18 -0800 Subject: [PATCH] ir3: Fix incorrect use of predicated ifs on getlast. The getlast lowering will generate new branches, violating the assumptions of prede_sched(). Part-of: --- src/freedreno/ir3/ir3_compiler_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 1190e371d51..1d559641431 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -4487,6 +4487,7 @@ instr_can_be_predicated(nir_instr *instr) case nir_intrinsic_ballot: case nir_intrinsic_elect: case nir_intrinsic_elect_any_ir3: + case nir_intrinsic_read_getlast_ir3: case nir_intrinsic_read_invocation_cond_ir3: case nir_intrinsic_demote: case nir_intrinsic_demote_if: