diff options
| author | 2021-01-23 04:13:37 -0300 | |
|---|---|---|
| committer | 2021-01-23 04:13:39 -0300 | |
| commit | 625a01188831ddaad2affc218cbf901c524b091e (patch) | |
| tree | ec9aba9f26e3a7c963c2add354d0a2e2f414d6aa | |
| parent | Merge pull request #4713 from behunin/int-flags (diff) | |
| download | yuzu-625a01188831ddaad2affc218cbf901c524b091e.tar.gz yuzu-625a01188831ddaad2affc218cbf901c524b091e.tar.xz yuzu-625a01188831ddaad2affc218cbf901c524b091e.zip | |
nsight_aftermath_tracker: Fix build issues when enabled
Fixes a bunch of build errors when Nsight Aftermath is properly enabled.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/vulkan_common/nsight_aftermath_tracker.cpp | 13 | ||||
| -rw-r--r-- | src/video_core/vulkan_common/nsight_aftermath_tracker.h | 8 |
2 files changed, 5 insertions, 16 deletions
diff --git a/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp b/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp index 8d10ac29e..7a9d00d4f 100644 --- a/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp +++ b/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp | |||
| @@ -12,21 +12,12 @@ | |||
| 12 | 12 | ||
| 13 | #include <fmt/format.h> | 13 | #include <fmt/format.h> |
| 14 | 14 | ||
| 15 | #define VK_NO_PROTOTYPES | ||
| 16 | #include <vulkan/vulkan.h> | ||
| 17 | |||
| 18 | #include <GFSDK_Aftermath.h> | ||
| 19 | #include <GFSDK_Aftermath_Defines.h> | ||
| 20 | #include <GFSDK_Aftermath_GpuCrashDump.h> | ||
| 21 | #include <GFSDK_Aftermath_GpuCrashDumpDecoding.h> | ||
| 22 | |||
| 23 | #include "common/common_paths.h" | 15 | #include "common/common_paths.h" |
| 24 | #include "common/common_types.h" | 16 | #include "common/common_types.h" |
| 25 | #include "common/file_util.h" | 17 | #include "common/file_util.h" |
| 26 | #include "common/logging/log.h" | 18 | #include "common/logging/log.h" |
| 27 | #include "common/scope_exit.h" | 19 | #include "common/scope_exit.h" |
| 28 | 20 | #include "video_core/vulkan_common/nsight_aftermath_tracker.h" | |
| 29 | #include "video_core/renderer_vulkan/nsight_aftermath_tracker.h" | ||
| 30 | 21 | ||
| 31 | namespace Vulkan { | 22 | namespace Vulkan { |
| 32 | 23 | ||
| @@ -53,7 +44,7 @@ NsightAftermathTracker::NsightAftermathTracker() { | |||
| 53 | !dl.GetSymbol("GFSDK_Aftermath_GpuCrashDump_GetJSON", | 44 | !dl.GetSymbol("GFSDK_Aftermath_GpuCrashDump_GetJSON", |
| 54 | &GFSDK_Aftermath_GpuCrashDump_GetJSON)) { | 45 | &GFSDK_Aftermath_GpuCrashDump_GetJSON)) { |
| 55 | LOG_ERROR(Render_Vulkan, "Failed to load Nsight Aftermath function pointers"); | 46 | LOG_ERROR(Render_Vulkan, "Failed to load Nsight Aftermath function pointers"); |
| 56 | return false; | 47 | return; |
| 57 | } | 48 | } |
| 58 | dump_dir = Common::FS::GetUserPath(Common::FS::UserPath::LogDir) + "gpucrash"; | 49 | dump_dir = Common::FS::GetUserPath(Common::FS::UserPath::LogDir) + "gpucrash"; |
| 59 | 50 | ||
diff --git a/src/video_core/vulkan_common/nsight_aftermath_tracker.h b/src/video_core/vulkan_common/nsight_aftermath_tracker.h index cee3847fb..1ce8d4e8e 100644 --- a/src/video_core/vulkan_common/nsight_aftermath_tracker.h +++ b/src/video_core/vulkan_common/nsight_aftermath_tracker.h | |||
| @@ -8,8 +8,9 @@ | |||
| 8 | #include <string> | 8 | #include <string> |
| 9 | #include <vector> | 9 | #include <vector> |
| 10 | 10 | ||
| 11 | #define VK_NO_PROTOTYPES | 11 | #include "common/common_types.h" |
| 12 | #include <vulkan/vulkan.h> | 12 | #include "common/dynamic_library.h" |
| 13 | #include "video_core/vulkan_common/vulkan_wrapper.h" | ||
| 13 | 14 | ||
| 14 | #ifdef HAS_NSIGHT_AFTERMATH | 15 | #ifdef HAS_NSIGHT_AFTERMATH |
| 15 | #include <GFSDK_Aftermath_Defines.h> | 16 | #include <GFSDK_Aftermath_Defines.h> |
| @@ -17,9 +18,6 @@ | |||
| 17 | #include <GFSDK_Aftermath_GpuCrashDumpDecoding.h> | 18 | #include <GFSDK_Aftermath_GpuCrashDumpDecoding.h> |
| 18 | #endif | 19 | #endif |
| 19 | 20 | ||
| 20 | #include "common/common_types.h" | ||
| 21 | #include "common/dynamic_library.h" | ||
| 22 | |||
| 23 | namespace Vulkan { | 21 | namespace Vulkan { |
| 24 | 22 | ||
| 25 | class NsightAftermathTracker { | 23 | class NsightAftermathTracker { |