mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
pan/mdg: Don't crash on unknown branch target
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4793>
This commit is contained in:
parent
e27fd4b3ec
commit
d8d7df6f09
1 changed files with 2 additions and 1 deletions
|
|
@ -298,7 +298,8 @@ mir_print_instruction(midgard_instruction *ins)
|
|||
|
||||
if (ins->branch.target_type != TARGET_DISCARD)
|
||||
printf(" %s -> block(%d)\n",
|
||||
branch_target_names[ins->branch.target_type],
|
||||
ins->branch.target_type < 4 ?
|
||||
branch_target_names[ins->branch.target_type] : "??",
|
||||
ins->branch.target_block);
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue