Wed Apr 24 07:51:17 2024 UTC (40d)
Add dummy cpu feature detection for mipsn64 on NetBSD.
XXX seems there is no way to detect mips MSA (SIMD) support currently.


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

cvs diff -r1.2 -r1.3 xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c (expand / switch to context diff)
--- xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c 2023/07/16 22:01:35 1.2
+++ xsrc/external/mit/MesaLib/dist/src/util/u_cpu_detect.c 2024/04/24 07:51:17 1.3
@@ -435,7 +435,14 @@
 #endif /* PIPE_ARCH_ARM || PIPE_ARCH_AARCH64 */
 
 #if defined(PIPE_ARCH_MIPS64)
+#ifdef __NetBSD__
 static void
+check_os_arm_support(void)
+{
+    util_cpu_caps.has_msa = false;	/* XXX seems there is no way to detect MSA support from userland */
+}
+#else
+static void
 check_os_mips64_support(void)
 {
     Elf64_auxv_t aux;
@@ -454,6 +461,7 @@
        close (fd);
     }
 }
+#endif
 #endif /* PIPE_ARCH_MIPS64 */