mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
pan/bi: Allow printing branches without targets
Useful for debugging codegen. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
This commit is contained in:
parent
a4fc16a1d4
commit
b34eb94d9c
1 changed files with 5 additions and 2 deletions
|
|
@ -402,8 +402,11 @@ bi_print_instruction(bi_instruction *ins, FILE *fp)
|
|||
}
|
||||
|
||||
if (ins->type == BI_BRANCH) {
|
||||
assert(ins->branch_target);
|
||||
fprintf(fp, "-> block%u", ins->branch_target->base.name);
|
||||
if (ins->branch_target) {
|
||||
fprintf(fp, "-> block%u", ins->branch_target->base.name);
|
||||
} else {
|
||||
fprintf(fp, "-> void");
|
||||
}
|
||||
} else if (ins->type == BI_TEX) {
|
||||
bi_print_texture(&ins->texture, fp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue