From 4bbd314580fd875d334badec450c6cfefa2ff069 Mon Sep 17 00:00:00 2001 From: Christoph Pillmayer Date: Sun, 14 Dec 2025 20:42:09 +0100 Subject: [PATCH] pan/bi: Teach bi_print_instr about memory vars Reviewed-by: Eric R. Smith Part-of: --- src/panfrost/compiler/bifrost/bi_printer.c.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/compiler/bifrost/bi_printer.c.py b/src/panfrost/compiler/bifrost/bi_printer.c.py index 7c55fe43302..1579859e955 100644 --- a/src/panfrost/compiler/bifrost/bi_printer.c.py +++ b/src/panfrost/compiler/bifrost/bi_printer.c.py @@ -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");