mirror of https://gitlab.freedesktop.org/mesa/mesa
util: Rename PIPE_ALIGN_STACK to UTIL_ALIGN_STACK and moved into util/compiler.h
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19676>
This commit is contained in:
parent
778402f3b0
commit
e5f0d222b1
|
@ -430,7 +430,7 @@ compute_blend_ref(const struct pipe_blend_state *blend,
|
|||
}
|
||||
|
||||
|
||||
PIPE_ALIGN_STACK
|
||||
UTIL_ALIGN_STACK
|
||||
static boolean
|
||||
test_one(unsigned verbose,
|
||||
FILE *fp,
|
||||
|
|
|
@ -150,7 +150,7 @@ add_conv_test(struct gallivm_state *gallivm,
|
|||
}
|
||||
|
||||
|
||||
PIPE_ALIGN_STACK
|
||||
UTIL_ALIGN_STACK
|
||||
static boolean
|
||||
test_one(unsigned verbose,
|
||||
FILE *fp,
|
||||
|
|
|
@ -133,7 +133,7 @@ add_fetch_rgba_test(struct gallivm_state *gallivm, unsigned verbose,
|
|||
}
|
||||
|
||||
|
||||
PIPE_ALIGN_STACK
|
||||
UTIL_ALIGN_STACK
|
||||
static boolean
|
||||
test_format_float(unsigned verbose, FILE *fp,
|
||||
const struct util_format_description *desc,
|
||||
|
@ -237,7 +237,7 @@ test_format_float(unsigned verbose, FILE *fp,
|
|||
}
|
||||
|
||||
|
||||
PIPE_ALIGN_STACK
|
||||
UTIL_ALIGN_STACK
|
||||
static boolean
|
||||
test_format_unorm8(unsigned verbose, FILE *fp,
|
||||
const struct util_format_description *desc,
|
||||
|
|
|
@ -84,7 +84,7 @@ add_printf_test(struct gallivm_state *gallivm)
|
|||
}
|
||||
|
||||
|
||||
PIPE_ALIGN_STACK
|
||||
UTIL_ALIGN_STACK
|
||||
static boolean
|
||||
test_printf(unsigned verbose, FILE *fp,
|
||||
const struct printf_test_case *testcase)
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
* We need to realign them to be able to use
|
||||
* SSE and to work with other libraries (llvm, etc)
|
||||
*/
|
||||
#define NINE_WINAPI WINAPI PIPE_ALIGN_STACK
|
||||
#define NINE_WINAPI WINAPI UTIL_ALIGN_STACK
|
||||
|
||||
#endif /* _NINE_FLAGS_H_ */
|
|
@ -29,6 +29,7 @@
|
|||
#define P_COMPILER_H
|
||||
|
||||
|
||||
#include "util/compiler.h"
|
||||
#include "util/detect.h"
|
||||
#include "util/macros.h"
|
||||
|
||||
|
@ -91,15 +92,6 @@ typedef unsigned char boolean;
|
|||
#define PIPE_CDECL
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* Macro for stack alignment. */
|
||||
#if defined(__GNUC__) && DETECT_ARCH_X86
|
||||
#define PIPE_ALIGN_STACK __attribute__((force_align_arg_pointer))
|
||||
#else
|
||||
#define PIPE_ALIGN_STACK
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Declare a variable on its own cache line.
|
||||
*
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "util/macros.h"
|
||||
#include "util/u_endian.h"
|
||||
#include "util/detect_arch.h"
|
||||
|
||||
/**
|
||||
* Define CPU_TO_LE32
|
||||
|
@ -65,6 +66,12 @@
|
|||
#define LE32_TO_CPU( x ) CPU_TO_LE32( x )
|
||||
|
||||
|
||||
/* Macro for stack alignment. */
|
||||
#if defined(__GNUC__) && DETECT_ARCH_X86
|
||||
#define UTIL_ALIGN_STACK __attribute__((force_align_arg_pointer))
|
||||
#else
|
||||
#define UTIL_ALIGN_STACK
|
||||
#endif
|
||||
|
||||
#define IEEE_ONE 0x3f800000
|
||||
|
||||
|
|
|
@ -368,7 +368,7 @@ static inline uint64_t xgetbv(void)
|
|||
|
||||
|
||||
#if DETECT_ARCH_X86
|
||||
PIPE_ALIGN_STACK
|
||||
UTIL_ALIGN_STACK
|
||||
static inline bool
|
||||
sse2_has_daz(void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue