i965: Don't disassemble UIP field for Broadwell WHILE instructions.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Feb 2014 09:35:50 +0000 (01:35 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Feb 2014 03:38:12 +0000 (19:38 -0800)
The WHILE instruction doesn't have UIP.  It only has JIP.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen8_disasm.c

index b2ab4486e7da822768677a3eee2a6e282499a185..37059083b3b3f774fbbd289755d779bdef425127 100644 (file)
@@ -828,11 +828,10 @@ gen8_disassemble(FILE *file, struct gen8_instruction *inst, int gen)
       pad(file, 64);
       err |= src2_3src(file, inst);
    } else {
-      if (opcode == BRW_OPCODE_ENDIF) {
+      if (opcode == BRW_OPCODE_ENDIF || opcode == BRW_OPCODE_WHILE) {
          format(file, " %d", gen8_jip(inst));
       } else if (opcode == BRW_OPCODE_IF ||
                  opcode == BRW_OPCODE_ELSE ||
-                 opcode == BRW_OPCODE_WHILE ||
                  opcode == BRW_OPCODE_BREAK ||
                  opcode == BRW_OPCODE_CONTINUE ||
                  opcode == BRW_OPCODE_HALT) {