cpuinfo: disable NEON detection on Android for now.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 17 Nov 2016 01:34:18 -0500
changeset 10622972f7f6dd9b9
parent 10621 3b74422e881d
child 10623 3b93b7acc1b4
cpuinfo: disable NEON detection on Android for now.

Will fix this properly soon.
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Thu Nov 17 01:26:56 2016 -0500
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Thu Nov 17 01:34:18 2016 -0500
     1.3 @@ -50,9 +50,11 @@
     1.4  #include <setjmp.h>
     1.5  #endif
     1.6  
     1.7 +#if 0  /* !!! FIXME */
     1.8  #if defined(__ANDROID__) && defined(__ARM_ARCH)
     1.9  #include <cpu-features.h>
    1.10  #endif
    1.11 +#endif
    1.12  
    1.13  #if defined(__LINUX__) && defined(__ARM_ARCH) && HAVE_GETAUXVAL
    1.14  #include <sys/auxv.h>
    1.15 @@ -312,7 +314,7 @@
    1.16      const int error = sysctlbyname("hw.optional.neon", &neon, &length, NULL, 0);
    1.17      if (!error)
    1.18          neon = (neon != 0);
    1.19 -#elif defined(__ANDROID__) && defined(__ARM_ARCH)
    1.20 +#elif 0 && defined(__ANDROID__) && defined(__ARM_ARCH)  /* !!! FIXME */
    1.21      if ( (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM) &&
    1.22           ((android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0) ) {
    1.23          neon = 1;