From 658f1f6003e8adc6129370e8ed7582fdbdd31291 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 13 Jun 2018 10:50:37 -0400 Subject: [PATCH] freedreno/ir3: fix missing recursion into block condition Fixes a problem seen with dEQP-GLES31.functional.ssbo.layout.single_basic_array.shared.row_major_mat4 Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_group.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } } -- 2.30.2