diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 702955278c5..c838fa09509 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -561,7 +561,7 @@ enum pipe_resource_usage { /** * Primitive types: */ -enum pipe_prim_type { +enum PACKED pipe_prim_type { PIPE_PRIM_POINTS, PIPE_PRIM_LINES, PIPE_PRIM_LINE_LOOP, @@ -578,7 +578,7 @@ enum pipe_prim_type { PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY, PIPE_PRIM_PATCHES, PIPE_PRIM_MAX, -} ENUM_PACKED; +}; /** * Tessellator spacing types diff --git a/src/util/macros.h b/src/util/macros.h index 8e0ee0ae171..84b2cddfbae 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -315,14 +315,6 @@ do { \ #define ATTRIBUTE_NOINLINE #endif -/* Use as: enum name { X, Y } ENUM_PACKED; */ -#if defined(__GNUC__) -#define ENUM_PACKED __attribute__((packed)) -#else -#define ENUM_PACKED -#endif - - /** * Check that STRUCT::FIELD can hold MAXVAL. We use a lot of bitfields * in Mesa/gallium. We have to be sure they're of sufficient size to