From: Rob Clark Date: Wed, 13 Jun 2018 14:50:37 +0000 (-0400) Subject: freedreno/ir3: fix missing recursion into block condition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=658f1f6003e8adc6129370e8ed7582fdbdd31291;p=mesa.git 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 --- 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); } }