mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
pan/mdg: Distinguish SSA vs reg when printing IR
This makes it easy to match the printed IR with the indices in the NIR. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16798>
This commit is contained in:
parent
520204ae18
commit
a099834b97
1 changed files with 5 additions and 3 deletions
|
|
@ -50,11 +50,13 @@ mir_print_index(int source)
|
|||
|
||||
/* TODO: Moving threshold */
|
||||
if (reg > 16 && reg < 24)
|
||||
printf("u%d", 23 - reg);
|
||||
printf("U%d", 23 - reg);
|
||||
else
|
||||
printf("r%d", reg);
|
||||
printf("R%d", reg);
|
||||
} else if (source & PAN_IS_REG) {
|
||||
printf("r%d", source >> 1);
|
||||
} else {
|
||||
printf("%d", source);
|
||||
printf("%d", source >> 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue