diff options
Diffstat (limited to 'src/intel/compiler/brw_reg.h')
-rw-r--r-- | src/intel/compiler/brw_reg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_reg.h b/src/intel/compiler/brw_reg.h index c41408104fa..7ad144bdfd5 100644 --- a/src/intel/compiler/brw_reg.h +++ b/src/intel/compiler/brw_reg.h @@ -590,6 +590,14 @@ brw_imm_df(double df) } static inline struct brw_reg +brw_imm_u64(uint64_t u64) +{ + struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_UQ); + imm.u64 = u64; + return imm; +} + +static inline struct brw_reg brw_imm_f(float f) { struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_F); |