[Mesa-dev] [PATCH 3/3] i965: Label JIP and UIP in Broadwell shader disassembly.

Kenneth Graunke kenneth at whitecape.org
Fri Feb 7 10:58:45 PST 2014


This makes it obvious which number is which.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 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);
-- 
1.8.5.2



More information about the mesa-dev mailing list