[Mesa-dev] [PATCH 1/1] panfrost: Use mir_foreach_instr_in_block_safe
Rohan Garg
rohan.garg at collabora.com
Fri Jun 21 10:55:08 UTC 2019
Use the _safe version as asserted by gallium
Signed-off-by: Rohan Garg <rohan.garg at collabora.com>
---
src/gallium/drivers/panfrost/midgard/midgard_schedule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_schedule.c b/src/gallium/drivers/panfrost/midgard/midgard_schedule.c
index 0bf3502f41c..1aef19c824c 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_schedule.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_schedule.c
@@ -406,7 +406,7 @@ schedule_block(compiler_context *ctx, midgard_block *block)
block->quadword_count = 0;
- mir_foreach_instr_in_block(block, ins) {
+ mir_foreach_instr_in_block_safe(block, ins) {
int skip;
midgard_bundle bundle = schedule_bundle(ctx, block, ins, &skip);
util_dynarray_append(&block->bundles, midgard_bundle, bundle);
--
2.17.1
More information about the mesa-dev
mailing list