summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorSagar Ghuge <[email protected]>2018-10-24 16:25:53 -0700
committerSamuel Iglesias Gonsalvez <[email protected]>2018-10-26 06:42:14 +0200
commit416abe809ad9c5ea31267d48987ee27dd1b86f70 (patch)
tree1ea4f79bd04f117f59d897409ae06f6a1634f1d0 /src/intel
parentd15fa248605ca5c44f042a80a670088a83fb33fe (diff)
intel/compiler: Print message descriptor as immediate source
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 <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/brw_disasm.c8
1 files changed, 7 insertions, 1 deletions
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");