diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-03-31 23:27:53 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-03-31 23:27:53 +0000 |
commit | 0eccf0a9b0179a560a8b1e9f23c227656b38b3c9 (patch) | |
tree | 0105d7ad515366fcb1227eeaf0f84d0e5041d2e4 | |
parent | ac403894e28de62ae28c2fb9586aa4ce9f37cfa0 (diff) | |
parent | e675112358828a4ca51c17ea4ccd7bbe3f6904eb (diff) | |
download | vulkan-cereal-0eccf0a9b0179a560a8b1e9f23c227656b38b3c9.tar.gz |
Merge "Use VK_CHECK to capture device lost details."
-rw-r--r-- | stream-servers/vulkan/VkCommonOperations.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stream-servers/vulkan/VkCommonOperations.cpp b/stream-servers/vulkan/VkCommonOperations.cpp index 60d8a5cf..fccd26fe 100644 --- a/stream-servers/vulkan/VkCommonOperations.cpp +++ b/stream-servers/vulkan/VkCommonOperations.cpp @@ -2614,8 +2614,9 @@ static std::tuple<VkCommandBuffer, VkFence> allocateQueueTransferCommandBuffer_l if (res == VK_NOT_READY) { continue; } - GFXSTREAM_ABORT(FatalError(ABORT_REASON_OTHER)) - << "Invalid fence state: " << static_cast<int>(res); + // We either have a device lost, or an invalid fence state. For the device lost case, + // VK_CHECK will ensure we capture the relevant streams. + VK_CHECK(res); } VkCommandBuffer commandBuffer; VkCommandBufferAllocateInfo allocateInfo = { |