mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-18 10:10:33 +01:00
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:
parent
2801c51a9e
commit
eaad90c262
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue