diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h index 389644215e4..b0908a3c1d1 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.h +++ b/src/mesa/drivers/dri/i965/brw_shader.h @@ -42,6 +42,13 @@ enum PACKED register_file { struct backend_reg { +#ifdef __cplusplus + bool is_zero() const; + bool is_one() const; + bool is_null() const; + bool is_accumulator() const; +#endif + enum register_file file; /**< Register file: GRF, MRF, IMM. */ uint8_t type; /**< Register type: BRW_REGISTER_TYPE_* */ |