mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
i965: Mark brw_hw_type_to_reg_type() as a pure function
text data bss dec hex filename 7816886 346248 420496 8583630 82f9ce i965_dri.so before 7816214 346248 420496 8582958 82f72e i965_dri.so after Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
This commit is contained in:
parent
e07fe89035
commit
91ef949054
1 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue