diff options
author | Connor Abbott <[email protected]> | 2015-11-12 12:40:38 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-05-10 11:25:02 +0200 |
commit | 5310bca024f77da40ea6f4c275455f9cb0528f9e (patch) | |
tree | d2becc64cdb81328181da365955fbf027d9a8c88 /src/mesa/drivers/dri/i965/brw_reg.h | |
parent | 9add73f641401775867824a5d799813474d34112 (diff) |
i965: add brw_imm_df
v2 (Iago)
- Fixup accessibility in backend_reg
Signed-off-by: Iago Toral Quiroga <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_reg.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_reg.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h index b84c709d3f1..6d51623960d 100644 --- a/src/mesa/drivers/dri/i965/brw_reg.h +++ b/src/mesa/drivers/dri/i965/brw_reg.h @@ -254,6 +254,7 @@ struct brw_reg { unsigned pad1:1; }; + double df; float f; int d; unsigned ud; @@ -544,6 +545,14 @@ brw_imm_reg(enum brw_reg_type type) /** Construct float immediate register */ static inline struct brw_reg +brw_imm_df(double df) +{ + struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_DF); + imm.df = df; + return imm; +} + +static inline struct brw_reg brw_imm_f(float f) { struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_F); |