From 57763ee73556ad6cbe988d042b46a7c35536cae9 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 9 May 2016 13:51:18 -0400 Subject: [PATCH] freedreno/ir3: fix fallout from new block iterators Since this is potentially modifying the block structure of the shader, it needs the _safe() version of the iterator. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c b/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c index 262f4907cab..6e1395c9001 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c @@ -304,7 +304,7 @@ lower_if_else_impl(nir_function_impl *impl) nir_builder_init(&b, impl); bool progress = false; - nir_foreach_block(block, impl) { + nir_foreach_block_safe(block, impl) { progress |= lower_if_else_block(block, &b, mem_ctx); } -- 2.30.2