From: Sagar Ghuge Date: Wed, 24 Oct 2018 23:25:53 +0000 (-0700) Subject: intel/compiler: Print message descriptor as immediate source X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=416abe809ad9c5ea31267d48987ee27dd1b86f70;p=mesa.git 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 Reviewed-by: Samuel Iglesias Gonsálvez --- 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");