mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
i965/fs: Add a negate() function.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
15f6118b77
commit
66cc8de042
1 changed files with 8 additions and 0 deletions
|
|
@ -118,6 +118,14 @@ public:
|
|||
uint8_t stride;
|
||||
};
|
||||
|
||||
static inline fs_reg
|
||||
negate(fs_reg reg)
|
||||
{
|
||||
assert(reg.file != HW_REG && reg.file != IMM);
|
||||
reg.negate = !reg.negate;
|
||||
return reg;
|
||||
}
|
||||
|
||||
static inline fs_reg
|
||||
retype(fs_reg reg, enum brw_reg_type type)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue