i965: Delete type field from backend_reg.
authorMatt Turner <mattst88@gmail.com>
Sat, 24 Oct 2015 22:04:23 +0000 (15:04 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 13 Nov 2015 19:27:50 +0000 (11:27 -0800)
Switching from an implicitly-sized type field to field with an explicit
bit width is safe because we have fewer than 2^4 types, and gcc will
warn if you attempt to set a value that will not fit.

Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_shader.h

index 73b57f4f8d1056bf4145764e9a2a293b9a3f391f..3f435e2b72871d3eb37b731181eb46fd77b1de3b 100644 (file)
@@ -59,7 +59,6 @@ struct backend_reg : public brw_reg
    bool in_range(const backend_reg &r, unsigned n) const;
 
    enum register_file file; /**< Register file: GRF, MRF, IMM. */
-   enum brw_reg_type type;  /**< Register type: BRW_REGISTER_TYPE_* */
 
    /**
     * Register number.