diff options
| author | Pokechu22 <pokechu022@gmail.com> | 2022-10-04 11:11:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-04 11:11:11 -0700 |
| commit | 5479f0e776009d85c509fc6f9874aceeaed9b85b (patch) | |
| tree | 479b2555d8faedb3830466b737b3f4586c3c348a /Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp | |
| parent | 078777e804610dcd7e8182fc98307f6fd1a9da2d (diff) | |
| parent | eea31db78128186cd331464ef8a9e364083d2970 (diff) | |
Merge pull request #11119 from AdmiralCurtiss/vulkan-panic-alerts
Vulkan/CommandBufferManager: Show error code in PanicAlerts.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp index c8e48dc677..8f6bfc2929 100644 --- a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp @@ -303,7 +303,8 @@ void CommandBufferManager::SubmitCommandBuffer(bool submit_on_worker_thread, if (res != VK_SUCCESS) { LOG_VULKAN_ERROR(res, "vkEndCommandBuffer failed: "); - PanicAlertFmt("Failed to end command buffer"); + PanicAlertFmt("Failed to end command buffer: {} ({})", VkResultToString(res), + static_cast<int>(res)); } } @@ -400,7 +401,8 @@ void CommandBufferManager::SubmitCommandBuffer(u32 command_buffer_index, if (res != VK_SUCCESS) { LOG_VULKAN_ERROR(res, "vkQueueSubmit failed: "); - PanicAlertFmt("Failed to submit command buffer."); + PanicAlertFmt("Failed to submit command buffer: {} ({})", VkResultToString(res), + static_cast<int>(res)); } // Do we have a swap chain to present? |
