From: Kenneth Graunke Date: Wed, 5 Feb 2014 09:47:10 +0000 (-0800) Subject: i965: Label JIP and UIP in Broadwell shader disassembly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcb0330d309cdfc7c46ccb7455525f9d888eab0b;p=mesa.git i965: Label JIP and UIP in Broadwell shader disassembly. This makes it obvious which number is which. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/gen8_disasm.c b/src/mesa/drivers/dri/i965/gen8_disasm.c index 37059083b3b..e63babdaebc 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);