mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
amd/addrlib: define endianess differently
This removes a Mesa-specific change. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9668>
This commit is contained in:
parent
1d69c0419b
commit
3616e02ef3
2 changed files with 7 additions and 9 deletions
|
|
@ -54,6 +54,13 @@ files_addrlib = files(
|
||||||
|
|
||||||
# Skip the addrlib definition of ADDR_FASTCALL so as not to use regparm.
|
# Skip the addrlib definition of ADDR_FASTCALL so as not to use regparm.
|
||||||
cpp_args_addrlib = ['-DADDR_FASTCALL=']
|
cpp_args_addrlib = ['-DADDR_FASTCALL=']
|
||||||
|
|
||||||
|
if host_machine.endian() == 'little'
|
||||||
|
cpp_args_addrlib += '-DLITTLEENDIAN_CPU'
|
||||||
|
else
|
||||||
|
cpp_args_addrlib += '-DBIGENDIAN_CPU'
|
||||||
|
endif
|
||||||
|
|
||||||
foreach w : ['-Wno-unused-variable', '-Wno-unused-local-typedefs',
|
foreach w : ['-Wno-unused-variable', '-Wno-unused-local-typedefs',
|
||||||
'-Wno-unused-but-set-variable', '-Wno-maybe-uninitialized']
|
'-Wno-unused-but-set-variable', '-Wno-maybe-uninitialized']
|
||||||
if cpp.has_argument(w)
|
if cpp.has_argument(w)
|
||||||
|
|
|
||||||
|
|
@ -46,15 +46,6 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "util/macros.h"
|
|
||||||
#include "util/u_endian.h"
|
|
||||||
|
|
||||||
#if UTIL_ARCH_LITTLE_ENDIAN
|
|
||||||
#define LITTLEENDIAN_CPU
|
|
||||||
#elif UTIL_ARCH_BIG_ENDIAN
|
|
||||||
#define BIGENDIAN_CPU
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Platform specific debug break defines
|
// Platform specific debug break defines
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue