diff options
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2022-06-08 10:24:02 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-06-14 15:08:38 +0000 |
commit | d1349eb50014a63da7e060a194fbab31c5ea7880 (patch) | |
tree | a2881e0e83c7e07d80769b82d9c382322dcba5ca | |
parent | ea7ba77be99f3d0729b4c30a50f504d0f8744bd7 (diff) |
gallium: remove unused macros
These aren't used, so let's remove them.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>
-rw-r--r-- | src/gallium/include/pipe/p_compiler.h | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h index b951ac108b3..f543236a0e1 100644 --- a/src/gallium/include/pipe/p_compiler.h +++ b/src/gallium/include/pipe/p_compiler.h @@ -103,23 +103,9 @@ typedef unsigned char boolean; -#if defined(__GNUC__) -#define PIPE_DEPRECATED __attribute__((__deprecated__)) -#else -#define PIPE_DEPRECATED -#endif - - - -/* Macros for data alignment. */ +/* Macro for stack alignment. */ #if defined(__GNUC__) -/* See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Type-Attributes.html */ -#define PIPE_ALIGN_TYPE(_alignment, _type) _type __attribute__((aligned(_alignment))) - -/* See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Variable-Attributes.html */ -#define PIPE_ALIGN_VAR(_alignment) __attribute__((aligned(_alignment))) - #ifdef PIPE_ARCH_X86 #define PIPE_ALIGN_STACK __attribute__((force_align_arg_pointer)) #else @@ -128,17 +114,10 @@ typedef unsigned char boolean; #elif defined(_MSC_VER) -/* See http://msdn.microsoft.com/en-us/library/83ythb65.aspx */ -#define PIPE_ALIGN_TYPE(_alignment, _type) __declspec(align(_alignment)) _type -#define PIPE_ALIGN_VAR(_alignment) __declspec(align(_alignment)) - #define PIPE_ALIGN_STACK #elif defined(SWIG) -#define PIPE_ALIGN_TYPE(_alignment, _type) _type -#define PIPE_ALIGN_VAR(_alignment) - #define PIPE_ALIGN_STACK #else @@ -165,21 +144,6 @@ typedef unsigned char boolean; union { char __cl_space[CACHE_LINE_SIZE]; \ decl; } -#if defined(__GNUC__) - -#define PIPE_READ_WRITE_BARRIER() __asm__("":::"memory") - -#elif defined(_MSC_VER) - -#define PIPE_READ_WRITE_BARRIER() _ReadWriteBarrier() - -#else - -#warning "Unsupported compiler" -#define PIPE_READ_WRITE_BARRIER() /* */ - -#endif - #if defined(__cplusplus) } #endif |