From: Matt Turner Date: Sat, 24 Oct 2015 22:04:23 +0000 (-0700) Subject: i965: Delete type field from backend_reg. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=182f137521f9c81f89a473ca5a411e6a7c531e19;p=mesa.git i965: Delete type field from backend_reg. 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 Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h index 73b57f4f8d1..3f435e2b728 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.