Commit 57763ee7 authored by Rob Clark's avatar Rob Clark

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: default avatarRob Clark <>
parent fe102f76
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment