From: Alyssa Rosenzweig Date: Tue, 21 Apr 2020 16:48:01 +0000 (-0400) Subject: pan/bi: Disassemble f16 dual tex X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf7b952308a349994a24ea27b56e8fc5ae37a70f;p=mesa.git pan/bi: Disassemble f16 dual tex Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index bdf4ced3ae6..bd97add3f7d 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -1420,12 +1420,15 @@ static void dump_add(FILE *fp, uint64_t word, struct bifrost_regs regs, * textures/samplers. Observed for the compact * (2D/normal) case. */ - if (ctrl.result_type == 9) { + if ((ctrl.result_type & 7) == 1) { + bool f32 = ctrl.result_type & 8; + struct bifrost_dual_tex_ctrl dualCtrl; memcpy((char *) &dualCtrl, (char *) &controlBits, sizeof(ctrl)); - fprintf(fp, "(dualtex) tex0:%d samp0:%d tex1:%d samp1:%d ", + fprintf(fp, "(dualtex) tex0:%d samp0:%d tex1:%d samp1:%d %s", dualCtrl.tex_index0, dualCtrl.sampler_index0, - dualCtrl.tex_index1, dualCtrl.sampler_index1); + dualCtrl.tex_index1, dualCtrl.sampler_index1, + f32 ? "f32" : "f16"); if (dualCtrl.unk0 != 3) fprintf(fp, "unk:%d ", dualCtrl.unk0); dualTex = true;