pan/bi: Print FAU index in verbose mode
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 19 Jan 2021 00:11:35 +0000 (19:11 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 Jan 2021 16:55:43 +0000 (16:55 +0000)
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 <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>

src/panfrost/bifrost/disassemble.c

index 2c3c893..9656bf3 100644 (file)
@@ -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");
 }