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:
parent
fa20037895
commit
5f37474403
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue