From 8a7fe50067cf0f0d9af4610b6e10890235fe313d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 5 Feb 2014 01:35:50 -0800 Subject: [PATCH] i965: Don't disassemble UIP field for Broadwell WHILE instructions. The WHILE instruction doesn't have UIP. It only has JIP. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/gen8_disasm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_disasm.c b/src/mesa/drivers/dri/i965/gen8_disasm.c index b2ab448..3705908 100644 --- a/src/mesa/drivers/dri/i965/gen8_disasm.c +++ b/src/mesa/drivers/dri/i965/gen8_disasm.c @@ -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) { -- 2.7.4