summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_disasm.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-03-08 17:18:26 -0800
committerMatt Turner <mattst88@gmail.com>2014-11-25 17:29:02 -0800
commit276075f8645613bbb814cb4c930c2bafe1aadfcb (patch)
tree4a5e86df915ebc35a5e99cb017a371cad387d73f /src/mesa/drivers/dri/i965/brw_disasm.c
parentb2abf033e06f3085e84dd039a7d84132c74a69b5 (diff)
downloadexternal_mesa3d-276075f8645613bbb814cb4c930c2bafe1aadfcb.zip
external_mesa3d-276075f8645613bbb814cb4c930c2bafe1aadfcb.tar.gz
external_mesa3d-276075f8645613bbb814cb4c930c2bafe1aadfcb.tar.bz2
i965: Disassemble vector float immediates properly.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_disasm.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_disasm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index e235fd4..dd7bb43 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -1025,7 +1025,11 @@ imm(FILE *file, struct brw_context *brw, unsigned type, brw_inst *inst)
format(file, "0x%08xUV", brw_inst_imm_ud(brw, inst));
break;
case BRW_HW_REG_IMM_TYPE_VF:
- format(file, "Vector Float");
+ format(file, "[%-gF, %-gF, %-gF, %-gF]VF",
+ brw_vf_to_float(brw_inst_imm_ud(brw, inst)),
+ brw_vf_to_float(brw_inst_imm_ud(brw, inst) >> 8),
+ brw_vf_to_float(brw_inst_imm_ud(brw, inst) >> 16),
+ brw_vf_to_float(brw_inst_imm_ud(brw, inst) >> 24));
break;
case BRW_HW_REG_IMM_TYPE_V:
format(file, "0x%08xV", brw_inst_imm_ud(brw, inst));