projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40541e3
)
util: Add macro util_get_cpu_caps in u_cpu_detect.c for avoid accidentally call it...
author
Jose Fonseca
<jfonseca@vmware.com>
Tue, 30 Aug 2022 15:13:58 +0000
(23:13 +0800)
committer
Marge 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
patch
|
blob
|
history
diff --git
a/src/util/u_cpu_detect.c
b/src/util/u_cpu_detect.c
index
dd799f2
..
52ea444
100644
(file)
--- a/
src/util/u_cpu_detect.c
+++ b/
src/util/u_cpu_detect.c
@@
-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