mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
intel/compiler: Add a few more brw_ud* helpers
Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18176>
This commit is contained in:
parent
3272868218
commit
f019687d23
1 changed files with 18 additions and 0 deletions
|
|
@ -609,6 +609,12 @@ brw_uw1_reg(enum brw_reg_file file, unsigned nr, unsigned subnr)
|
|||
return suboffset(retype(brw_vec1_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr);
|
||||
}
|
||||
|
||||
static inline struct brw_reg
|
||||
brw_ud8_reg(enum brw_reg_file file, unsigned nr, unsigned subnr)
|
||||
{
|
||||
return retype(brw_vec8_reg(file, nr, subnr), BRW_REGISTER_TYPE_UD);
|
||||
}
|
||||
|
||||
static inline struct brw_reg
|
||||
brw_ud1_reg(enum brw_reg_file file, unsigned nr, unsigned subnr)
|
||||
{
|
||||
|
|
@ -813,6 +819,18 @@ brw_uw16_grf(unsigned nr, unsigned subnr)
|
|||
return brw_uw16_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr);
|
||||
}
|
||||
|
||||
static inline struct brw_reg
|
||||
brw_ud8_grf(unsigned nr, unsigned subnr)
|
||||
{
|
||||
return brw_ud8_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr);
|
||||
}
|
||||
|
||||
static inline struct brw_reg
|
||||
brw_ud1_grf(unsigned nr, unsigned subnr)
|
||||
{
|
||||
return brw_ud1_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr);
|
||||
}
|
||||
|
||||
|
||||
/** Construct null register (usually used for setting condition codes) */
|
||||
static inline struct brw_reg
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue