Module: Mesa Branch: master Commit: dcb0330d309cdfc7c46ccb7455525f9d888eab0b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dcb0330d309cdfc7c46ccb7455525f9d888eab0b
Author: Kenneth Graunke <kenn...@whitecape.org> Date: Wed Feb 5 01:47:10 2014 -0800 i965: Label JIP and UIP in Broadwell shader disassembly. This makes it obvious which number is which. Signed-off-by: Kenneth Graunke <kenn...@whitecape.org> Reviewed-by: Eric Anholt <e...@anholt.net> --- src/mesa/drivers/dri/i965/gen8_disasm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_disasm.c b/src/mesa/drivers/dri/i965/gen8_disasm.c index 3705908..e63babd 100644 --- a/src/mesa/drivers/dri/i965/gen8_disasm.c +++ b/src/mesa/drivers/dri/i965/gen8_disasm.c @@ -829,13 +829,17 @@ gen8_disassemble(FILE *file, struct gen8_instruction *inst, int gen) err |= src2_3src(file, inst); } else { if (opcode == BRW_OPCODE_ENDIF || opcode == BRW_OPCODE_WHILE) { - format(file, " %d", gen8_jip(inst)); + pad(file, 16); + format(file, "JIP: %d", gen8_jip(inst)); } else if (opcode == BRW_OPCODE_IF || opcode == BRW_OPCODE_ELSE || opcode == BRW_OPCODE_BREAK || opcode == BRW_OPCODE_CONTINUE || opcode == BRW_OPCODE_HALT) { - format(file, " %d %d", gen8_jip(inst), gen8_uip(inst)); + pad(file, 16); + format(file, "JIP: %d", gen8_jip(inst)); + pad(file, 32); + format(file, "UIP: %d", gen8_uip(inst)); } else { if (m_opcode[opcode].ndst > 0) { pad(file, 16); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit