mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 15:50:11 +01:00
i965: Add support for disassembling 64-bit integer immediates
After the last patch converted things into enums, I helpfully got a compiler warning about these missing from the switch statement. Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
This commit is contained in:
parent
deae25ce37
commit
92f787ff86
2 changed files with 13 additions and 0 deletions
|
|
@ -1029,6 +1029,12 @@ imm(FILE *file, const struct gen_device_info *devinfo, enum hw_imm_type type,
|
||||||
const brw_inst *inst)
|
const brw_inst *inst)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case GEN8_HW_IMM_TYPE_UQ:
|
||||||
|
format(file, "0x%16lxUD", brw_inst_imm_uq(devinfo, inst));
|
||||||
|
break;
|
||||||
|
case GEN8_HW_IMM_TYPE_Q:
|
||||||
|
format(file, "%ldD", brw_inst_imm_uq(devinfo, inst));
|
||||||
|
break;
|
||||||
case BRW_HW_IMM_TYPE_UD:
|
case BRW_HW_IMM_TYPE_UD:
|
||||||
format(file, "0x%08xUD", brw_inst_imm_ud(devinfo, inst));
|
format(file, "0x%08xUD", brw_inst_imm_ud(devinfo, inst));
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -569,6 +569,13 @@ brw_inst_imm_ud(const struct gen_device_info *devinfo, const brw_inst *insn)
|
||||||
return brw_inst_bits(insn, 127, 96);
|
return brw_inst_bits(insn, 127, 96);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline uint64_t
|
||||||
|
brw_inst_imm_uq(const struct gen_device_info *devinfo, const brw_inst *insn)
|
||||||
|
{
|
||||||
|
assert(devinfo->gen >= 8);
|
||||||
|
return brw_inst_bits(insn, 127, 64);
|
||||||
|
}
|
||||||
|
|
||||||
static inline float
|
static inline float
|
||||||
brw_inst_imm_f(const struct gen_device_info *devinfo, const brw_inst *insn)
|
brw_inst_imm_f(const struct gen_device_info *devinfo, const brw_inst *insn)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue