util: Add macro util_get_cpu_caps in u_cpu_detect.c for avoid accidentally call it...
authorJose Fonseca <jfonseca@vmware.com>
Tue, 30 Aug 2022 15:13:58 +0000 (23:13 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 01:51:42 +0000 (01:51 +0000)
Signed-off-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17813>

src/util/u_cpu_detect.c

index dd799f2..52ea444 100644 (file)
@@ -90,6 +90,9 @@
 #include <sched.h>
 #endif
 
+// prevent inadvert infinite recursion
+#define util_get_cpu_caps() util_get_cpu_caps_DO_NOT_USE()
+
 DEBUG_GET_ONCE_BOOL_OPTION(dump_cpu, "GALLIUM_DUMP_CPU", false)
 
 static