i965: Fix disasm of a SEND's mlen and rlen on Ironlake.
authorEric Anholt <eric@anholt.net>
Thu, 8 Jul 2010 19:35:48 +0000 (12:35 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 8 Jul 2010 19:50:53 +0000 (12:50 -0700)
src/mesa/drivers/dri/i965/brw_disasm.c

index 16feca1f16a928cbe368a45687561573cb5fef13..3dbf4ad3a04a76af2a6dfb74b8acfbf6b777ca85 100644 (file)
@@ -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) {