mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
util: skip NEON detection if built with -mfpu=neon
Helps platforms where runtime detection isn't implemented. Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
This commit is contained in:
parent
5218c3b27e
commit
7d5ad8e77e
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
*/
|
||||
#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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue