[Mesa-dev] [PATCH 0/3] Shader disassembly label support and formatting changes

Lonnberg, Toni toni.lonnberg at intel.com
Mon Feb 13 11:25:55 UTC 2017

I added label support to the shader disassembly and changed some of the 
formatting to follow the one in the specifications. These changes were done so
that the new offline shader assembler I've been working on can use Mesa's 
disassembly dumps directly to produce matching binaries.

The formatting changes have been done mainly to get rid of ambiguity, to get
the exact same binaries when float values are used as immediates and just to
make the life of the assembler more simple.

The number formatting and label support have been placed behind a new debug
flag "disasm" in the INTEL_DEBUGĀ flags so that the dumps use the old 
annotation style by default, and the new label supported format with the
new flag.

Lonnberg, Toni (3):
  Added label support for shader disassembly. SEND and SENDC formatting
    now also     includes the SFID information.
  Added support for disassembling SENDS and SENDSC.
  Changed shader disassembler number formatting to use integers when the
    "disasm" debug flag is used.     Register types and regions are also
    now formatted more like in the architecture documentation.

 src/intel/tools/aubinator.c                    |  48 +--
 src/intel/tools/disasm.c                       |  63 +++-
 src/mesa/drivers/dri/i965/brw_context.h        |   4 +-
 src/mesa/drivers/dri/i965/brw_disasm.c         | 395 ++++++++++++++++++-------
 src/mesa/drivers/dri/i965/brw_eu.c             | 119 ++++++--
 src/mesa/drivers/dri/i965/brw_eu.h             |  11 +
 src/mesa/drivers/dri/i965/brw_eu_compact.c     |   4 +-
 src/mesa/drivers/dri/i965/brw_eu_emit.c        |   2 +-
 src/mesa/drivers/dri/i965/brw_fs_generator.cpp |  10 +-
 src/mesa/drivers/dri/i965/brw_inst.h           |  31 +-
 src/mesa/drivers/dri/i965/intel_debug.c        |   1 +
 src/mesa/drivers/dri/i965/intel_debug.h        |   1 +
 src/mesa/drivers/dri/i965/test_eu_compact.c    |   2 +-
 13 files changed, 505 insertions(+), 186 deletions(-)


Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

More information about the mesa-dev mailing list