summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-05-09 13:51:18 -0400
committerRob Clark <[email protected]>2016-05-09 13:52:29 -0400
commit57763ee73556ad6cbe988d042b46a7c35536cae9 (patch)
tree636362d09c2c0c9c3c1174fff6c5449442ff6ff4 /src
parentfe102f7677547a48e2985b78ff6671a2ac9da9c4 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c2
1 files changed, 1 insertions, 1 deletions
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);
}