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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user