Conversation
|
This PR replaces "Pm4InfoInit()" with a "Dive::InitDiveCore()". Why is this better? |
Dependency management, so we don't need things like that shows up on ever single target regardless if they depend on dive_core. There's a few more header I need to look at so it is not removed just yet. |
Still not understanding what replacing Pm4InfoInit with a custom init has to do with dive_core include path. |
Note: This is the include path for dive ui, and about half of them does not need to be there -I/repo/dive/build/ui
-I/repo/dive/ui
-I/repo/dive/build/ui/dive_ui_autogen/include_Debug
-I/repo/dive/build/dive_core
-I/repo/dive/third_party/libarchive/libarchive
-I/repo/dive/LibArchive_INCLUDE_DIRS
-I/repo/dive/third_party/Vulkan-Headers/include
-I/repo/dive
-I/repo/dive/build
-I/repo/dive/third_party/abseil-cpp
-I/repo/dive/src
-I/repo/dive/dive_core/../third_party/gfxreconstruct/framework
-I/repo/dive/build/dive_core/freedreno/isa
-I/repo/dive/third_party/mesa/src/freedreno/common
-I/repo/dive/third_party/mesa/src
-I/repo/dive/third_party/mesa/include
-I/repo/dive/src/dive
-I/repo/dive/build/generated/Debug/include |
Ah ok. that's starting to make sense. |
Yes. dive_core itself still include everything it needs, just that it does not need to pollute the include directory of other targets. Although there's still some reference to "adreno.h" that need to be cleaned up, which I'll do in a different PR. A secondary benefit of not having include to a generated file is that all the static analysis tool works better (e.g. github can find symbol definition of |
Note: "pm4_info.h" is a generated file, and have convoluted include path requirements.