panfrost/midgard: Use _safe iterator
Fixes this assertion: ../mesa/src/panfrost/midgard/midgard_schedule.c:507:schedule_block: Assertion `ins == __next && "use _safe iterator"' failed. Trace/breakpoint trap Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
82ee48e5ef
commit
812ce2ce9e
|
@ -504,7 +504,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);
|
||||
|
|
Loading…
Reference in New Issue