mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
panfrost: Make sure bundle.instructions[] contains valid instructions
Add an assert() in schedule_bundle() to make sure all instruction pointers in bundle.instructions[] are valid. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
5882e0def9
commit
0142dcb990
1 changed files with 1 additions and 0 deletions
|
|
@ -562,6 +562,7 @@ schedule_bundle(compiler_context *ctx, midgard_block *block, midgard_instruction
|
|||
|
||||
midgard_instruction *uins = ins;
|
||||
for (; packed_idx < bundle.instruction_count; ++packed_idx) {
|
||||
assert(&uins->link != &block->instructions);
|
||||
bundle.instructions[packed_idx] = uins;
|
||||
uins = mir_next_op(uins);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue