mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
util: Drop the ENUM_PACKED macro
We have both PACKED and ENUM_PACKED macros which expand to the same thing. PACKED was based on a meson check for function attributes while ENUM_PACKED appears to be a legacy gallium thing which was based on defined(__GCC__). This changes the one use of ENUM_PACKED to PACKED and deletes ENUM_PACKED. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20412>
This commit is contained in:
parent
58e6d8eee2
commit
13f7ef5e0c
2 changed files with 2 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue