mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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 <eric@anholt.net>
This commit is contained in:
parent
1f6b92b476
commit
385ee7c3d0
1 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue