Wed Apr 24 19:05:53 2024 UTC (15d)
fix pasto in previous


(martin)
diff -r1.3 -r1.4 xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c

cvs diff -r1.3 -r1.4 xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c (expand / switch to unified diff)

--- xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c 2024/04/24 07:51:17 1.3
+++ xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c 2024/04/24 19:05:53 1.4
@@ -427,27 +427,27 @@ check_os_arm_support(void) @@ -427,27 +427,27 @@ check_os_arm_support(void)
427} 427}
428 428
429#elif defined(PIPE_ARCH_AARCH64) 429#elif defined(PIPE_ARCH_AARCH64)
430static void 430static void
431check_os_arm_support(void) 431check_os_arm_support(void)
432{ 432{
433 util_cpu_caps.has_neon = true; 433 util_cpu_caps.has_neon = true;
434} 434}
435#endif /* PIPE_ARCH_ARM || PIPE_ARCH_AARCH64 */ 435#endif /* PIPE_ARCH_ARM || PIPE_ARCH_AARCH64 */
436 436
437#if defined(PIPE_ARCH_MIPS64) 437#if defined(PIPE_ARCH_MIPS64)
438#ifdef __NetBSD__ 438#ifdef __NetBSD__
439static void 439static void
440check_os_arm_support(void) 440check_os_mips64_support(void)
441{ 441{
442 util_cpu_caps.has_msa = false; /* XXX seems there is no way to detect MSA support from userland */ 442 util_cpu_caps.has_msa = false; /* XXX seems there is no way to detect MSA support from userland */
443} 443}
444#else 444#else
445static void 445static void
446check_os_mips64_support(void) 446check_os_mips64_support(void)
447{ 447{
448 Elf64_auxv_t aux; 448 Elf64_auxv_t aux;
449 int fd; 449 int fd;
450 450
451 fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC); 451 fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC);
452 if (fd >= 0) { 452 if (fd >= 0) {
453 while (read(fd, &aux, sizeof(Elf64_auxv_t)) == sizeof(Elf64_auxv_t)) { 453 while (read(fd, &aux, sizeof(Elf64_auxv_t)) == sizeof(Elf64_auxv_t)) {