[1/1] panfrost: Use mir_foreach_instr_in_block_safe

Submitted by Rohan Garg on June 21, 2019, 10:55 a.m.

Details

Message ID 20190621105515.18159-1-rohan.garg@collabora.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Rohan Garg June 21, 2019, 10:55 a.m.
Use the _safe version as asserted by gallium

Signed-off-by: Rohan Garg <rohan.garg@collabora.com>
---
 src/gallium/drivers/panfrost/midgard/midgard_schedule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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);