diff options
| -rw-r--r-- | src/video_core/vulkan_common/nsight_aftermath_tracker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp b/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp index 85f1d13e0..5fa0d9620 100644 --- a/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp +++ b/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp | |||
| @@ -57,7 +57,7 @@ NsightAftermathTracker::NsightAftermathTracker() { | |||
| 57 | if (!GFSDK_Aftermath_SUCCEED(GFSDK_Aftermath_EnableGpuCrashDumps( | 57 | if (!GFSDK_Aftermath_SUCCEED(GFSDK_Aftermath_EnableGpuCrashDumps( |
| 58 | GFSDK_Aftermath_Version_API, GFSDK_Aftermath_GpuCrashDumpWatchedApiFlags_Vulkan, | 58 | GFSDK_Aftermath_Version_API, GFSDK_Aftermath_GpuCrashDumpWatchedApiFlags_Vulkan, |
| 59 | GFSDK_Aftermath_GpuCrashDumpFeatureFlags_Default, GpuCrashDumpCallback, | 59 | GFSDK_Aftermath_GpuCrashDumpFeatureFlags_Default, GpuCrashDumpCallback, |
| 60 | ShaderDebugInfoCallback, CrashDumpDescriptionCallback, this))) { | 60 | ShaderDebugInfoCallback, CrashDumpDescriptionCallback, nullptr, this))) { |
| 61 | LOG_ERROR(Render_Vulkan, "GFSDK_Aftermath_EnableGpuCrashDumps failed"); | 61 | LOG_ERROR(Render_Vulkan, "GFSDK_Aftermath_EnableGpuCrashDumps failed"); |
| 62 | return; | 62 | return; |
| 63 | } | 63 | } |
| @@ -83,7 +83,7 @@ void NsightAftermathTracker::SaveShader(std::span<const u32> spirv) const { | |||
| 83 | 83 | ||
| 84 | std::scoped_lock lock{mutex}; | 84 | std::scoped_lock lock{mutex}; |
| 85 | 85 | ||
| 86 | GFSDK_Aftermath_ShaderHash hash; | 86 | GFSDK_Aftermath_ShaderBinaryHash hash; |
| 87 | if (!GFSDK_Aftermath_SUCCEED( | 87 | if (!GFSDK_Aftermath_SUCCEED( |
| 88 | GFSDK_Aftermath_GetShaderHashSpirv(GFSDK_Aftermath_Version_API, &shader, &hash))) { | 88 | GFSDK_Aftermath_GetShaderHashSpirv(GFSDK_Aftermath_Version_API, &shader, &hash))) { |
| 89 | LOG_ERROR(Render_Vulkan, "Failed to hash SPIR-V module"); | 89 | LOG_ERROR(Render_Vulkan, "Failed to hash SPIR-V module"); |
| @@ -121,8 +121,8 @@ void NsightAftermathTracker::OnGpuCrashDumpCallback(const void* gpu_crash_dump, | |||
| 121 | u32 json_size = 0; | 121 | u32 json_size = 0; |
| 122 | if (!GFSDK_Aftermath_SUCCEED(GFSDK_Aftermath_GpuCrashDump_GenerateJSON( | 122 | if (!GFSDK_Aftermath_SUCCEED(GFSDK_Aftermath_GpuCrashDump_GenerateJSON( |
| 123 | decoder, GFSDK_Aftermath_GpuCrashDumpDecoderFlags_ALL_INFO, | 123 | decoder, GFSDK_Aftermath_GpuCrashDumpDecoderFlags_ALL_INFO, |
| 124 | GFSDK_Aftermath_GpuCrashDumpFormatterFlags_NONE, nullptr, nullptr, nullptr, nullptr, | 124 | GFSDK_Aftermath_GpuCrashDumpFormatterFlags_NONE, nullptr, nullptr, nullptr, this, |
| 125 | this, &json_size))) { | 125 | &json_size))) { |
| 126 | LOG_ERROR(Render_Vulkan, "Failed to generate JSON"); | 126 | LOG_ERROR(Render_Vulkan, "Failed to generate JSON"); |
| 127 | return; | 127 | return; |
| 128 | } | 128 | } |