i965: Disassemble vector float immediates properly.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
Matt Turner 2014-03-08 17:18:26 -08:00
parent b2abf033e0
commit 276075f864
1 changed files with 5 additions and 1 deletions

View File

@ -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));