Commit 13f04d59 by Alexis Hetu Committed by Alexis Hétu

Fix for dEQP-VK.wsi.*.swapchain.acquire.too_many_timeout

With the assertion for these tests fixed here: https://gerrit.khronos.org/#/c/6075/ The *.too_many test passed locally, but not the *.too_many_timeout test. The reason is that, when a timeout is provided, the acceptable return value for failing to acquire an image is VK_TIMEOUT, not VK_NOT_READY. Returning VK_TIMEOUT when a timeout is provided solves the issue. Bug: b/162249856 Change-Id: Id2733fec8422aad93a1aa351b481691c69692168 Tests: dEQP-VK.wsi.*.swapchain.acquire.* Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/47648 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
parent afbc899f
...@@ -194,7 +194,7 @@ VkResult SwapchainKHR::getNextImage(uint64_t timeout, Semaphore *semaphore, Fenc ...@@ -194,7 +194,7 @@ VkResult SwapchainKHR::getNextImage(uint64_t timeout, Semaphore *semaphore, Fenc
} }
} }
return VK_NOT_READY; return (timeout > 0) ? VK_TIMEOUT : VK_NOT_READY;
} }
VkResult SwapchainKHR::present(uint32_t index) VkResult SwapchainKHR::present(uint32_t index)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment