From 0f27e24934ea55b614eb90d36ff8e2abd5cc4841 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 9 Feb 2021 18:34:08 -0500 Subject: [PATCH] pan/bi: Print FAU uniforms in IR Uses "u3, u3[1]" syntax which is close enough to the assembly syntax "u3.w0, u3.w1". Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/bi_printer.c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panfrost/bifrost/bi_printer.c.py b/src/panfrost/bifrost/bi_printer.c.py index 7dcbffee88f..1175e82cf2d 100644 --- a/src/panfrost/bifrost/bi_printer.c.py +++ b/src/panfrost/bifrost/bi_printer.c.py @@ -79,6 +79,8 @@ bi_print_index(FILE *fp, bi_index index) fprintf(fp, "_"); else if (index.type == BI_INDEX_CONSTANT) fprintf(fp, "#0x%x", index.value); + else if (index.type == BI_INDEX_FAU && index.value >= BIR_FAU_UNIFORM) + fprintf(fp, "u%u", index.value & ~BIR_FAU_UNIFORM); else if (index.type == BI_INDEX_FAU) fprintf(fp, "%s", bir_fau_name(index.value)); else if (index.type == BI_INDEX_PASS)