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:
Matt Turner 2015-10-24 14:35:33 -07:00
parent c7ed5d1d1c
commit 433df2e03c
3 changed files with 2 additions and 5 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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