From: Francisco Jerez Date: Fri, 9 Nov 2018 22:13:38 +0000 (-0800) Subject: intel/disasm/gen12: Disassemble software scoreboard information. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83612c0127130037fac684ed13581abb06af1030;p=mesa.git intel/disasm/gen12: Disassemble software scoreboard information. Reviewed-by: Caio Marcelo de Oliveira Filho --- diff --git a/src/intel/compiler/brw_disasm.c b/src/intel/compiler/brw_disasm.c index 04a347a05f8..7cb6b42de94 100644 --- a/src/intel/compiler/brw_disasm.c +++ b/src/intel/compiler/brw_disasm.c @@ -1569,6 +1569,19 @@ qtr_ctrl(FILE *file, const struct gen_device_info *devinfo, const brw_inst *inst return 0; } +static int +swsb(FILE *file, const struct gen_device_info *devinfo, const brw_inst *inst) +{ + const struct tgl_swsb swsb = tgl_swsb_decode(brw_inst_swsb(devinfo, inst)); + if (swsb.regdist) + format(file, " @%d", swsb.regdist); + if (swsb.mode) + format(file, " $%d%s", swsb.sbid, + (swsb.mode & TGL_SBID_SET ? "" : + swsb.mode & TGL_SBID_DST ? ".dst" : ".src")); + return 0; +} + #ifdef DEBUG static __attribute__((__unused__)) int brw_disassemble_imm(const struct gen_device_info *devinfo, @@ -2040,6 +2053,9 @@ brw_disassemble_inst(FILE *file, const struct gen_device_info *devinfo, } } + if (devinfo->gen >= 12) + err |= swsb(file, devinfo, inst); + err |= control(file, "compaction", cmpt_ctrl, is_compacted, &space); err |= control(file, "thread control", thread_ctrl, brw_inst_thread_control(devinfo, inst), &space);