summaryrefslogtreecommitdiff
path: root/assembler
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-02-04 12:23:57 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-04 15:54:42 +0000
commit92262e1ff8c1b2d68b910adcadafe24761469d10 (patch)
tree7d8a64c9fbed3d659afd847aa6045d24b12dfde8 /assembler
parentd9afa5bfeac435dcfded66908b49fd342a007312 (diff)
assembler: Fix the decoding of the destination horizontal stride
dest_horizontal_stride needs go through the horiz_stride[] indirection to pick up the rigth stride when its value is 11b (4 elements). Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler')
-rw-r--r--assembler/brw_disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/assembler/brw_disasm.c b/assembler/brw_disasm.c
index de121e61..3fee6821 100644
--- a/assembler/brw_disasm.c
+++ b/assembler/brw_disasm.c
@@ -522,7 +522,7 @@ static int dest (FILE *file, struct brw_instruction *inst)
if (inst->bits1.da1.dest_subreg_nr)
format (file, ".%d", inst->bits1.da1.dest_subreg_nr /
reg_type_size[inst->bits1.da1.dest_reg_type]);
- format (file, "<%d>", inst->bits1.da1.dest_horiz_stride);
+ format (file, "<%s>", horiz_stride[inst->bits1.da1.dest_horiz_stride]);
err |= control (file, "dest reg encoding", reg_encoding, inst->bits1.da1.dest_reg_type, NULL);
}
else
@@ -534,7 +534,7 @@ static int dest (FILE *file, struct brw_instruction *inst)
if (inst->bits1.ia1.dest_indirect_offset)
format (file, " %d", inst->bits1.ia1.dest_indirect_offset);
string (file, "]");
- format (file, "<%d>", inst->bits1.ia1.dest_horiz_stride);
+ format (file, "<%s>", horiz_stride[inst->bits1.ia1.dest_horiz_stride]);
err |= control (file, "dest reg encoding", reg_encoding, inst->bits1.ia1.dest_reg_type, NULL);
}
}