Use the unlocked atomic path in Mesa when just __arm__ is defined and

don't assume the builtin atomics are present with __ARM_ARCH_6__ and later
as base gcc with -march=armv6 doesn't have them.
This commit is contained in:
jsg 2016-12-31 08:21:39 +00:00
parent 1eaac10a9a
commit c503a0e73b

View File

@ -23,10 +23,7 @@
#define PIPE_ATOMIC_OS_SOLARIS
#elif defined(_MSC_VER)
#define PIPE_ATOMIC_MSVC_INTRINSIC
#elif defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__) || \
defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || \
defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5E__) || \
defined(__hppa__) || defined(__sparc__) || defined(__sh__)
#elif defined(__arm__) || defined(__hppa__) || defined(__sh__)
#define PIPE_ATOMIC_UNLOCKED
#elif defined(__GNUC__)
#define PIPE_ATOMIC_GCC_INTRINSIC