From 800ee3d3033921020390dbba56acea0682f97179 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 2 Oct 2020 14:01:22 -0400 Subject: [PATCH] pan/bi: Print message types as strings Even if we're not in verbose mode to match the canonical syntax. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/disassemble.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index 1141a3c3329..a0edeb6b8da 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -132,6 +132,9 @@ static void dump_header(FILE *fp, struct bifrost_header header, bool verbose) else if (header.float_exceptions == BIFROST_EXCEPTIONS_PRECISE_SQRT) fprintf(fp, "fpe_psqr "); + if (header.clause_type) + fprintf(fp, "%s ", bi_clause_type_name(header.next_clause_type)); + if (header.unk2) fprintf(fp, "unk2 "); @@ -141,12 +144,10 @@ static void dump_header(FILE *fp, struct bifrost_header header, bool verbose) if (header.next_clause_prefetch) fprintf(fp, "ncph "); - fprintf(fp, "\n"); + if (header.next_clause_type) + fprintf(fp, "next_%s ", bi_clause_type_name(header.next_clause_type)); - if (verbose) { - fprintf(fp, "# clause type %d, next clause type %d\n", - header.clause_type, header.next_clause_type); - } + fprintf(fp, "\n"); } static struct bifrost_reg_ctrl DecodeRegCtrl(FILE *fp, struct bifrost_regs regs, bool first)