From: Rob Clark Date: Mon, 9 May 2016 17:51:18 +0000 (-0400) Subject: freedreno/ir3: fix fallout from new block iterators X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57763ee73556ad6cbe988d042b46a7c35536cae9;p=mesa.git 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 --- 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); }