diff --git a/src/gallium/drivers/freedreno/ir3/ir3_group.c b/src/gallium/drivers/freedreno/ir3/ir3_group.c index fecb89ff34b..c85903409a3 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_group.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_group.c @@ -263,6 +263,10 @@ find_neighbors(struct ir3 *ir) struct ir3_instruction *instr = block->keeps[i]; instr_find_neighbors(instr); } + + /* We also need to account for if-condition: */ + if (block->condition) + instr_find_neighbors(block->condition); } }