Commit 914a46d4 by Hernan Liatis

Wait semaphores for VkQueuePresentKHR

Bug: b/124265819 Change-Id: I7c84c3be8fb13a4ef798f90b8c610ebeafa82b5c Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26970Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarHernan Liatis <hliatis@google.com>
parent 43be7163
......@@ -76,6 +76,11 @@ void Queue::waitIdle()
void Queue::present(const VkPresentInfoKHR* presentInfo)
{
for(uint32_t i = 0; i < presentInfo->waitSemaphoreCount; i++)
{
vk::Cast(presentInfo->pWaitSemaphores[i])->wait();
}
for(uint32_t i = 0; i < presentInfo->swapchainCount; i++)
{
vk::Cast(presentInfo->pSwapchains[i])->present(presentInfo->pImageIndices[i]);
......
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