i965: Delete abs/negate fields from backend_reg.
authorMatt Turner <mattst88@gmail.com>
Sat, 24 Oct 2015 21:35:33 +0000 (14:35 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 13 Nov 2015 19:27:50 +0000 (11:27 -0800)
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>
src/mesa/drivers/dri/i965/brw_ir_fs.h
src/mesa/drivers/dri/i965/brw_ir_vec4.h
src/mesa/drivers/dri/i965/brw_shader.h

index 4417555..c0e486e 100644 (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;
 }
index 29642c6..2fbb043 100644 (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;
 }
index e1e89dd..73b57f4 100644 (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