util/cpu: fix broken powerpc linux builds

Fixes: 0ffbfa1d54 ("util/cpu: Teach the Linux code about getauxval()")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35727>
This commit is contained in:
Timothy Arceri 2025-06-25 15:02:32 +10:00 committed by Marge Bot
parent 2801c51a9e
commit eaad90c262

View file

@ -173,7 +173,7 @@ check_os_altivec_support(void)
char *env_vsx = getenv("GALLIVM_VSX");
uint64_t hwcap = getauxval(AT_HWCAP);
util_cpu_caps.has_altivec = (hwcap >> 28) & 1;
if (!env_vsx || env_vsx[0] != '0') {
if (!env_vsx || env_vsx[0] != '0')
util_cpu_caps.has_vsx = (hwcap >> 7) & 1;
#else /* !DETECT_OS_APPLE && !DETECT_OS_BSD && !DETECT_OS_LINUX */
/* not on Apple/Darwin or Linux, do it the brute-force way */