Mesa (master): i965: Dump the WHILE jump distance on gen6.

Eric Anholt anholt at kemper.freedesktop.org
Thu Dec 2 00:31:33 UTC 2010


Module: Mesa
Branch: master
Commit: a9f62881a316539658845a98b856f1bf31ca44bc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9f62881a316539658845a98b856f1bf31ca44bc

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Dec  1 15:00:08 2010 -0800

i965: Dump the WHILE jump distance on gen6.

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 962c041..6b61f7a 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -899,7 +899,8 @@ int brw_disasm (FILE *file, struct brw_instruction *inst, int gen)
 	err |= dest (file, inst);
     } else if (gen >= 6 && (inst->header.opcode == BRW_OPCODE_IF ||
 			    inst->header.opcode == BRW_OPCODE_ELSE ||
-			    inst->header.opcode == BRW_OPCODE_ENDIF)) {
+			    inst->header.opcode == BRW_OPCODE_ENDIF ||
+			    inst->header.opcode == BRW_OPCODE_WHILE)) {
        format (file, " %d", inst->bits1.branch_gen6.jump_count);
     }
 




More information about the mesa-commit mailing list