diff options
author | Matt Turner <[email protected]> | 2015-10-24 14:32:03 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-11-13 11:27:50 -0800 |
commit | c7ed5d1d1ca5d0e537cd5eb2cc8d4cae7ae73564 (patch) | |
tree | 786f019cf0b11a5f5962eb492ec39b2c9c43d17a /src/mesa/drivers/dri | |
parent | 88f349c4e100acd5dd3e7137496444907a175c39 (diff) |
i965: Make backend_reg inherit from brw_reg.
Some fields (file, type, abs, negate) in brw_reg are shadowed by
backend_reg.
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h index 29baebf0cc1..e1e89dd3212 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.h +++ b/src/mesa/drivers/dri/i965/brw_shader.h @@ -48,16 +48,15 @@ enum PACKED register_file { UNIFORM, /* prog_data->params[reg] */ }; -struct backend_reg -{ #ifdef __cplusplus +struct backend_reg : public brw_reg +{ bool is_zero() const; bool is_one() const; bool is_negative_one() const; bool is_null() const; bool is_accumulator() const; bool in_range(const backend_reg &r, unsigned n) const; -#endif enum register_file file; /**< Register file: GRF, MRF, IMM. */ enum brw_reg_type type; /**< Register type: BRW_REGISTER_TYPE_* */ @@ -87,6 +86,7 @@ struct backend_reg bool negate; bool abs; }; +#endif struct cfg_t; struct bblock_t; |