diff options
author | Chad Versace <[email protected]> | 2013-01-23 11:17:51 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2013-01-24 21:10:46 -0800 |
commit | ca7d332253e237c51fdf5c88a8f7937e65e8abff (patch) | |
tree | 499f9fc64054090613f8e73ef9ff040b8f7147d5 /src | |
parent | d1f2e9699f3e5e7649fc12c4f2409af91d2494fe (diff) |
i965/disasm: Fix horizontal stride of dest registers
The bug: The printed horizontal stride was the numerical value of the
BRW_HORIZONTAL_$N enum.
The fix: Translate the enum before printing.
Note: This is a candidate for the stable releases.
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_disasm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 6dd1736ffad..1621769b9dd 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++ b/src/mesa/drivers/dri/i965/brw_disasm.c @@ -524,7 +524,9 @@ 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); + string (file, "<"); + err |= control (file, "horiz stride", horiz_stride, inst->bits1.da1.dest_horiz_stride, NULL); + string (file, ">"); err |= control (file, "dest reg encoding", reg_encoding, inst->bits1.da1.dest_reg_type, NULL); } else @@ -535,8 +537,9 @@ static int dest (FILE *file, struct brw_instruction *inst) reg_type_size[inst->bits1.ia1.dest_reg_type]); 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); + string (file, "]<"); + err |= control (file, "horiz stride", horiz_stride, inst->bits1.ia1.dest_horiz_stride, NULL); + string (file, ">"); err |= control (file, "dest reg encoding", reg_encoding, inst->bits1.ia1.dest_reg_type, NULL); } } |