Module: Mesa Branch: master Commit: 57763ee73556ad6cbe988d042b46a7c35536cae9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=57763ee73556ad6cbe988d042b46a7c35536cae9
Author: Rob Clark <robcl...@freedesktop.org> Date: Mon May 9 13:51:18 2016 -0400 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 <robcl...@freedesktop.org> --- 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 262f490..6e1395c 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); } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit