pan/bi: Teach bi_print_instr about memory vars

Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39305>
This commit is contained in:
Christoph Pillmayer 2025-12-14 20:42:09 +01:00 committed by Marge Bot
parent 4fba6b984f
commit 4bbd314580

View file

@ -85,9 +85,9 @@ bi_print_index(FILE *fp, bi_index index)
else if (index.type == BI_INDEX_PASS)
fprintf(fp, "%s", bir_passthrough_name(index.value));
else if (index.type == BI_INDEX_REGISTER)
fprintf(fp, "r%u", index.value);
fprintf(fp, "%s%u", index.memory ? "m" : "r", index.value);
else if (index.type == BI_INDEX_NORMAL)
fprintf(fp, "%u", index.value);
fprintf(fp, "%s%u", index.memory ? "m" : "", index.value);
else
UNREACHABLE("Invalid index");