[Mesa-dev] [PATCH 03/24] i965: Delete type field from backend_reg.

Matt Turner mattst88 at gmail.com
Mon Nov 2 16:29:13 PST 2015


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.
---
 src/mesa/drivers/dri/i965/brw_shader.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h
index c9614aa..9a7a2d5 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.h
+++ b/src/mesa/drivers/dri/i965/brw_shader.h
@@ -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.
-- 
2.4.9



More information about the mesa-dev mailing list