Mesa (master): intel/compiler: Print message descriptor as immediate source

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 26 04:44:19 UTC 2018


Module: Mesa
Branch: master
Commit: 416abe809ad9c5ea31267d48987ee27dd1b86f70
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=416abe809ad9c5ea31267d48987ee27dd1b86f70

Author: Sagar Ghuge <sagar.ghuge at intel.com>
Date:   Wed Oct 24 16:25:53 2018 -0700

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 <sagar.ghuge at intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

---

 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 6a7e988641..cfccdea3b8 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");




More information about the mesa-commit mailing list