patch-xbmc_platform_linux_CPUInfoLinux_cpp 1012 B

12345678910111213141516171819202122232425262728293031
  1. --- xbmc-19.3-Matrix.orig/xbmc/platform/linux/CPUInfoLinux.cpp 2021-10-24 12:09:58.000000000 +0200
  2. +++ xbmc-19.3-Matrix/xbmc/platform/linux/CPUInfoLinux.cpp 2022-02-26 13:55:19.357313177 +0100
  3. @@ -18,10 +18,7 @@
  4. #include <sstream>
  5. #include <vector>
  6. -#if (defined(__arm__) && defined(HAS_NEON)) || defined(__aarch64__)
  7. -#include <asm/hwcap.h>
  8. -#include <sys/auxv.h>
  9. -#elif defined(__i386__) || defined(__x86_64__)
  10. +#if defined(__i386__) || defined(__x86_64__)
  11. #include <cpuid.h>
  12. #endif
  13. @@ -252,16 +249,6 @@ CCPUInfoLinux::CCPUInfoLinux()
  14. }
  15. #endif
  16. -#if defined(HAS_NEON) && defined(__arm__)
  17. - if (getauxval(AT_HWCAP) & HWCAP_NEON)
  18. - m_cpuFeatures |= CPU_FEATURE_NEON;
  19. -#endif
  20. -
  21. -#if defined(HAS_NEON) && defined(__aarch64__)
  22. - if (getauxval(AT_HWCAP) & HWCAP_ASIMD)
  23. - m_cpuFeatures |= CPU_FEATURE_NEON;
  24. -#endif
  25. -
  26. // Set MMX2 when SSE is present as SSE is a superset of MMX2 and Intel doesn't set the MMX2 cap
  27. if (m_cpuFeatures & CPU_FEATURE_SSE)
  28. m_cpuFeatures |= CPU_FEATURE_MMX2;