mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
i965: Delete abs/negate fields from backend_reg.
Instead use the ones provided by brw_reg. Also allows us to handle HW_REGs in the negate() functions. Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
c7ed5d1d1c
commit
433df2e03c
3 changed files with 2 additions and 5 deletions
|
|
@ -72,7 +72,7 @@ public:
|
|||
static inline fs_reg
|
||||
negate(fs_reg reg)
|
||||
{
|
||||
assert(reg.file != HW_REG && reg.file != IMM);
|
||||
assert(reg.file != IMM);
|
||||
reg.negate = !reg.negate;
|
||||
return reg;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ swizzle(src_reg reg, unsigned swizzle)
|
|||
static inline src_reg
|
||||
negate(src_reg reg)
|
||||
{
|
||||
assert(reg.file != HW_REG && reg.file != IMM);
|
||||
assert(reg.file != IMM);
|
||||
reg.negate = !reg.negate;
|
||||
return reg;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,9 +82,6 @@ struct backend_reg : public brw_reg
|
|||
uint16_t reg_offset;
|
||||
|
||||
struct brw_reg fixed_hw_reg;
|
||||
|
||||
bool negate;
|
||||
bool abs;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue