diff options
author | Matt Turner <[email protected]> | 2019-01-22 15:03:02 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2019-01-24 11:07:24 -0800 |
commit | 385ee7c3d0536424eb9822fe873d4410b831cbfe (patch) | |
tree | 92fd4a138a5018404c4662cf93fccff0ea2bec49 /src/util | |
parent | 1f6b92b47652e7f48f03ef6a4228a19537022d23 (diff) |
gallium: Enable ASIMD/NEON on aarch64.
NEON (now called ASIMD) is available on all aarch64 CPUs. Our code was
missing an aarch64 path, leading to util_cpu_caps.has_neon always being
false on aarch64.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/u_cpu_detect.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index 52b9ae547d4..4df10c62ef5 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -365,7 +365,14 @@ check_os_arm_support(void) } #endif /* PIPE_OS_LINUX */ } -#endif /* PIPE_ARCH_ARM */ + +#elif defined(PIPE_ARCH_AARCH64) +static void +check_os_arm_support(void) +{ + util_cpu_caps.has_neon = true; +} +#endif /* PIPE_ARCH_ARM || PIPE_ARCH_AARCH64 */ static void get_cpu_topology(void) @@ -534,7 +541,7 @@ util_cpu_detect_once(void) } #endif /* PIPE_ARCH_X86 || PIPE_ARCH_X86_64 */ -#if defined(PIPE_ARCH_ARM) +#if defined(PIPE_ARCH_ARM) || defined(PIPE_ARCH_AARCH64) check_os_arm_support(); #endif |