aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/midgard/midgard_print.c')
-rw-r--r--src/panfrost/midgard/midgard_print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c
index 14b99d69f49..89b853ce3cb 100644
--- a/src/panfrost/midgard/midgard_print.c
+++ b/src/panfrost/midgard/midgard_print.c
@@ -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;