From: Eric Anholt Date: Thu, 8 Jul 2010 19:35:48 +0000 (-0700) Subject: i965: Fix disasm of a SEND's mlen and rlen on Ironlake. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3cc7585eae1dd7aa1f2257e787c784672f49831;p=mesa.git i965: Fix disasm of a SEND's mlen and rlen on Ironlake. --- diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 16feca1f16a..3dbf4ad3a04 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) {