From 6fe41a12e307c91794c80d7284cff0d7f885b2d4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 21 Apr 2020 12:14:51 -0400 Subject: [PATCH] pan/bi: Print tex_compact coordinates Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/disassemble.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index 64788e648ff..5c655a2db22 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -1395,6 +1395,13 @@ static void dump_add(FILE *fp, uint64_t word, struct bifrost_regs regs, int tex_index; int sampler_index; bool dualTex = false; + + fprintf(fp, "coords <"); + dump_src(fp, ADD.src0, regs, consts, false); + fprintf(fp, ", "); + dump_src(fp, ADD.op & 0x7, regs, consts, false); + fprintf(fp, ">, "); + if (info.src_type == ADD_TEX_COMPACT) { tex_index = (ADD.op >> 3) & 0x7; sampler_index = (ADD.op >> 7) & 0x7; -- 2.30.2