summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/intel/compiler/brw_inst.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_inst.h b/src/intel/compiler/brw_inst.h
index fdc6cd76225..f5a65fea40d 100644
--- a/src/intel/compiler/brw_inst.h
+++ b/src/intel/compiler/brw_inst.h
@@ -1136,7 +1136,13 @@ brw_inst_set_imm_df(const struct gen_device_info *devinfo,
} dt;
(void) devinfo;
dt.d = value;
- brw_inst_set_bits(insn, 127, 64, dt.u);
+
+ if (devinfo->gen >= 12) {
+ brw_inst_set_bits(insn, 95, 64, dt.u >> 32);
+ brw_inst_set_bits(insn, 127, 96, dt.u & 0xFFFFFFFF);
+ } else {
+ brw_inst_set_bits(insn, 127, 64, dt.u);
+ }
}
static inline void
@@ -1144,7 +1150,12 @@ brw_inst_set_imm_uq(const struct gen_device_info *devinfo,
brw_inst *insn, uint64_t value)
{
(void) devinfo;
- brw_inst_set_bits(insn, 127, 64, value);
+ if (devinfo->gen >= 12) {
+ brw_inst_set_bits(insn, 95, 64, value >> 32);
+ brw_inst_set_bits(insn, 127, 96, value & 0xFFFFFFFF);
+ } else {
+ brw_inst_set_bits(insn, 127, 64, value);
+ }
}
/** @} */