From 416abe809ad9c5ea31267d48987ee27dd1b86f70 Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Wed, 24 Oct 2018 16:25:53 -0700 Subject: [PATCH] intel/compiler: Print message descriptor as immediate source MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit While disassembling send(c) instruction print message descriptor as immediate source operand along with message descriptor. This allows assembler to read immediate source operand and set bits accordingly. Signed-off-by: Sagar Ghuge Reviewed-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_disasm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_disasm.c b/src/intel/compiler/brw_disasm.c index 6a7e988641a..cfccdea3b8a 100644 --- a/src/intel/compiler/brw_disasm.c +++ b/src/intel/compiler/brw_disasm.c @@ -1606,8 +1606,14 @@ brw_disassemble_inst(FILE *file, const struct gen_device_info *devinfo, /* show the indirect descriptor source */ pad(file, 48); err |= src1(file, devinfo, inst); + pad(file, 64); + } else { + pad(file, 48); } + /* Print message descriptor as immediate source */ + fprintf(file, "0x%08"PRIx64, inst->data[1] >> 32); + newline(file); pad(file, 16); space = 0; @@ -1615,7 +1621,7 @@ brw_disassemble_inst(FILE *file, const struct gen_device_info *devinfo, fprintf(file, " "); err |= control(file, "SFID", devinfo->gen >= 6 ? gen6_sfid : gen4_sfid, sfid, &space); - + string(file, " MsgDesc:"); if (brw_inst_src1_reg_file(devinfo, inst) != BRW_IMMEDIATE_VALUE) { format(file, " indirect"); -- 2.30.2