projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: skip NEON detection if built with -mfpu=neon
[mesa.git]
/
src
/
util
/
u_cpu_detect.c
diff --git
a/src/util/u_cpu_detect.c
b/src/util/u_cpu_detect.c
index abfea65b24d8b145590fcda1e99e7e93902b62c6..387003d6cba761762f6de8233ff76d71cb0bc94a 100644
(file)
--- a/
src/util/u_cpu_detect.c
+++ b/
src/util/u_cpu_detect.c
@@
-360,7
+360,9
@@
check_os_arm_support(void)
* used. Because of this we cannot use PIPE_OS_ANDROID here, but rather
* have a separate macro that only gets enabled from respective Android.mk.
*/
* used. Because of this we cannot use PIPE_OS_ANDROID here, but rather
* have a separate macro that only gets enabled from respective Android.mk.
*/
-#if defined(HAS_ANDROID_CPUFEATURES)
+#if defined(__ARM_NEON) || defined(__ARM_NEON__)
+ util_cpu_caps.has_neon = 1;
+#elif defined(HAS_ANDROID_CPUFEATURES)
AndroidCpuFamily cpu_family = android_getCpuFamily();
uint64_t cpu_features = android_getCpuFeatures();
AndroidCpuFamily cpu_family = android_getCpuFamily();
uint64_t cpu_features = android_getCpuFeatures();