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:
Alyssa Rosenzweig 2022-05-31 09:08:23 -04:00
parent 520204ae18
commit a099834b97

View file

@ -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);
}
}