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 <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
This commit is contained in:
Alyssa Rosenzweig 2021-01-18 19:11:35 -05:00 committed by Marge Bot
parent 15d03ed783
commit 24991d787f
1 changed files with 2 additions and 5 deletions

View 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");
}