On Thursday, 25 October 2018 1:25:53 (CEST) Sagar Ghuge wrote: > 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.gh...@intel.com> > --- > src/intel/compiler/brw_disasm.c | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/src/intel/compiler/brw_disasm.c > b/src/intel/compiler/brw_disasm.c index 6a7e988641..9c6df9e645 100644 > --- a/src/intel/compiler/brw_disasm.c > +++ b/src/intel/compiler/brw_disasm.c > @@ -1606,7 +1606,12 @@ 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); > +
IIRC, we have a coding style rules that is: when the if's body has several statements like here, then the else body should be between braces even when it is one line. That thing increases readability. I have not found it written in the coding style guidelines [0], but I have seen it in a lot of places of the code. I can do this change for you before pushing it tomorrow. Sounds good? With that fixed, Reviewed-by: Samuel Iglesias Gonsálvez <sigles...@igalia.com> Sam [0] https://www.mesa3d.org/codingstyle.html > + /* Print message descriptor as immediate source */ > + fprintf(file, "0x%08"PRIx64, inst->data[1] >> 32); > > newline(file); > pad(file, 16); > @@ -1615,7 +1620,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");
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev