util: Rename src/gallium/include/pipe/p_config.h to src/util/detect_arch.h

Even though the defines in p_config.h are stared with PIPE_, they are indeed
are generic detecting mechanics, we will rename them to DETECT_* in latter MR

We rename src/gallium/include/pipe/p_config.h src/util/detect_arch.h because
the detect code in src/gallium/include/pipe/p_config.h are most about
processor architecture detecting.

The file util/detect.h is added to replace functional of src/gallium/include/pipe/p_config.h
So we replace of #include "pipe/p_config.h" with #include "util/detect.h"

The file util/detect_cc.h is added as a placeholder for moving compiler related macro defines
from p_config.h into it in following commits

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19674>
This commit is contained in:
Yonggang Luo
2022-11-09 15:00:37 +08:00
committed by Marge Bot
parent 7710cc8506
commit 845222dbae
37 changed files with 147 additions and 38 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
* @author José Fonseca <jfonseca@vmware.com>
*/
#include "pipe/p_config.h"
#include "util/detect.h"
#define DEBUG_MEMORY_IMPLEMENTATION