Mesa (master): i965: Fix disasm of a SEND's mlen and rlen on Ironlake.

Eric Anholt anholt at kemper.freedesktop.org
Thu Jul 8 19:51:45 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul  8 12:35:48 2010 -0700

i965: Fix disasm of a SEND's mlen and rlen on Ironlake.

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 16feca1..3dbf4ad 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -917,10 +917,17 @@ int brw_disasm (FILE *file, struct brw_instruction *inst, int gen)
 	}
 	if (space)
 	    string (file, " ");
-	format (file, "mlen %d",
-		inst->bits3.generic.msg_length);
-	format (file, " rlen %d",
-		inst->bits3.generic.response_length);
+	if (gen == 5) {
+	   format (file, "mlen %d",
+		   inst->bits3.generic_gen5.msg_length);
+	   format (file, " rlen %d",
+		   inst->bits3.generic_gen5.response_length);
+	} else {
+	   format (file, "mlen %d",
+		   inst->bits3.generic.msg_length);
+	   format (file, " rlen %d",
+		   inst->bits3.generic.response_length);
+	}
     }
     pad (file, 64);
     if (inst->header.opcode != BRW_OPCODE_NOP) {




More information about the mesa-commit mailing list