diff --git a/docs/doxygen-wrapper.py b/docs/doxygen-wrapper.py index e3eb794f9b5..879bd67d89d 100755 --- a/docs/doxygen-wrapper.py +++ b/docs/doxygen-wrapper.py @@ -58,6 +58,7 @@ EXPAND_ONLY_PREDEF = YES # Defines required to keep doxygen from tripping on our attribute macros PREDEFINED = PACKED= +PREDEFINED += ENUM_PACKED= PREDEFINED += ATTRIBUTE_CONST= PREDEFINED += MUST_CHECK= """) diff --git a/src/compiler/glsl/ir_uniform.h b/src/compiler/glsl/ir_uniform.h index 57f77fd3d1b..f44b8e3f4f2 100644 --- a/src/compiler/glsl/ir_uniform.h +++ b/src/compiler/glsl/ir_uniform.h @@ -41,7 +41,7 @@ extern "C" { #endif -enum PACKED gl_uniform_driver_format { +enum ENUM_PACKED gl_uniform_driver_format { uniform_native = 0, /**< Store data in the native format. */ uniform_int_float, /**< Store integer data as floats. */ }; diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 70bfafd0949..56f4618f7ff 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -902,7 +902,7 @@ typedef struct nir_register { #define nir_foreach_register_safe(reg, reg_list) \ foreach_list_typed_safe(nir_register, reg, node, reg_list) -typedef enum PACKED { +typedef enum ENUM_PACKED { nir_instr_type_alu, nir_instr_type_deref, nir_instr_type_call, @@ -1265,7 +1265,7 @@ typedef struct { * The values in this enum are carefully chosen so that the sized type is * just the unsized type OR the number of bits. */ -typedef enum PACKED { +typedef enum ENUM_PACKED { nir_type_invalid = 0, /* Not a valid type */ nir_type_int = 2, nir_type_uint = 4, @@ -5300,7 +5300,7 @@ bool nir_lower_sysvals_to_varyings(nir_shader *shader, const struct nir_lower_sysvals_to_varyings_options *options); -enum PACKED nir_lower_tex_packing { +enum ENUM_PACKED nir_lower_tex_packing { /** No packing */ nir_lower_tex_packing_none = 0, /** diff --git a/src/compiler/nir/nir_range_analysis.h b/src/compiler/nir/nir_range_analysis.h index 6e842d370f3..dfb8f9419a3 100644 --- a/src/compiler/nir/nir_range_analysis.h +++ b/src/compiler/nir/nir_range_analysis.h @@ -25,7 +25,7 @@ #include "nir.h" -enum PACKED ssa_ranges { +enum ENUM_PACKED ssa_ranges { unknown = 0, lt_zero, le_zero, diff --git a/src/compiler/nir/nir_search.h b/src/compiler/nir/nir_search.h index 02e58dcba81..72a5a35c00d 100644 --- a/src/compiler/nir/nir_search.h +++ b/src/compiler/nir/nir_search.h @@ -32,7 +32,7 @@ struct nir_builder; -typedef enum PACKED { +typedef enum ENUM_PACKED { nir_search_value_expression, nir_search_value_variable, nir_search_value_constant, diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index e88cffd3b2b..e591bd55997 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -1157,7 +1157,7 @@ enum tess_primitive_mode /** * Mesa primitive types for both GL and Vulkan: */ -enum PACKED mesa_prim +enum ENUM_PACKED mesa_prim { MESA_PRIM_POINTS, MESA_PRIM_LINES, @@ -1318,7 +1318,7 @@ enum cl_sampler_filter_mode { #define MAT_BIT_BACK_INDEXES (1<