diff options
-rw-r--r-- | src/intel/compiler/brw_reg_type.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_reg_type.h b/src/intel/compiler/brw_reg_type.h index 6fc57792b4b..87d9fe31e86 100644 --- a/src/intel/compiler/brw_reg_type.h +++ b/src/intel/compiler/brw_reg_type.h @@ -28,6 +28,12 @@ extern "C" { #endif +#ifdef HAVE_FUNC_ATTRIBUTE_PURE +#define ATTRIBUTE_PURE __attribute__((__pure__)) +#else +#define ATTRIBUTE_PURE +#endif + enum brw_reg_file; struct gen_device_info; @@ -63,7 +69,7 @@ unsigned brw_reg_type_to_hw_type(const struct gen_device_info *devinfo, enum brw_reg_file file, enum brw_reg_type type); -enum brw_reg_type +enum brw_reg_type ATTRIBUTE_PURE brw_hw_type_to_reg_type(const struct gen_device_info *devinfo, enum brw_reg_file file, unsigned hw_type); |