pan/mdg: Assert scheduled instructions are reasonable

Would've got a scheduler hang.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
Alyssa Rosenzweig 2021-06-09 13:18:13 -04:00 committed by Marge Bot
parent fa20037895
commit 5f37474403
1 changed files with 4 additions and 0 deletions

View File

@ -822,6 +822,8 @@ mir_choose_bundle(
predicate.tag = ~0;
chosen = mir_choose_instruction(instructions, liveness, worklist, count, &predicate);
assert(chosen == NULL || chosen->type != TAG_LOAD_STORE_4);
if (chosen)
return chosen->type;
else
@ -1064,6 +1066,8 @@ mir_schedule_ldst(
midgard_instruction *pair =
mir_choose_instruction(instructions, liveness, worklist, len, &predicate);
assert(ins != NULL);
struct midgard_bundle out = {
.tag = TAG_LOAD_STORE_4,
.instruction_count = pair ? 2 : 1,