From: Alyssa Rosenzweig Date: Tue, 21 Apr 2020 16:14:51 +0000 (-0400) Subject: pan/bi: Print tex_compact coordinates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fe41a12e307c91794c80d7284cff0d7f885b2d4;p=mesa.git pan/bi: Print tex_compact coordinates Signed-off-by: Alyssa Rosenzweig Part-of: --- 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;