From 24991d787f7033562087047f0ca8d8441e9de11d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 18 Jan 2021 19:11:35 -0500 Subject: [PATCH] pan/bi: Print FAU index in verbose mode Even if we're not loading a uniform, this is useful information. The uniform pretty-printing didn't correspond well to the hardware anyway so this is a net win, although if somebody really wanted pretty-printing could be added in here. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/disassemble.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index 2c3c8931b50..9656bf322d3 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -186,11 +186,8 @@ static void dump_regs(FILE *fp, struct bifrost_regs srcs, bool first) else if (ctrl.slot23.slot3 == BIFROST_OP_WRITE_HI) fprintf(fp, "slot 3: r%d (write hi %s) ", srcs.reg3, slot3_fma); - if (srcs.fau_idx) { - if (srcs.fau_idx & 0x80) { - fprintf(fp, "uniform: u%d", (srcs.fau_idx & 0x7f) * 2); - } - } + if (srcs.fau_idx) + fprintf(fp, "fau %X ", srcs.fau_idx); fprintf(fp, "\n"); }