[Mesa-dev] [PATCH 1/9] i965: Add disasm for gen6+ UIP/JIP on BREAK/CONT/HALT.

Eric Anholt eric at anholt.net
Mon Mar 12 18:08:14 PDT 2012


---
 src/mesa/drivers/dri/i965/brw_disasm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 187bc0a..aebfa73 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -1118,6 +1118,10 @@ int brw_disasm (FILE *file, struct brw_instruction *inst, int gen)
 			       inst->header.opcode == BRW_OPCODE_ENDIF ||
 			       inst->header.opcode == BRW_OPCODE_WHILE)) {
 	  format (file, " %d", inst->bits1.branch_gen6.jump_count);
+       } else if (gen >= 6 && (inst->header.opcode == BRW_OPCODE_BREAK ||
+			       inst->header.opcode == BRW_OPCODE_CONTINUE ||
+			       inst->header.opcode == BRW_OPCODE_HALT)) {
+	  format (file, " %d %d", inst->bits3.break_cont.uip, inst->bits3.break_cont.jip);
        } else if (inst->header.opcode == BRW_OPCODE_JMPI) {
 	  format (file, " %d", inst->bits3.d);
        }
-- 
1.7.9.1



More information about the mesa-dev mailing list