Commit 4a304244 by Mikko Tiusanen Committed by Nicolas Capens

Skip wait on already signalled timeline semaphore

Changes VkTimeLineSemaphore::Shared::wait to pass on already signalled semaphores. Bug: b/188565298 Change-Id: I52089aca20d79392b1d9fb9ae2e0e04e8c91c6ff Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54908 Kokoro-Result: kokoro <noreply+kokoro@google.com> Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarSean Risser <srisser@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 863f46e7
......@@ -74,7 +74,7 @@ void TimelineSemaphore::wait(uint64_t value)
void TimelineSemaphore::Shared::wait(uint64_t value)
{
marl::lock lock(mutex);
cv.wait(lock, [&]() { return counter == value; });
cv.wait(lock, [&]() { return counter >= value; });
}
uint64_t TimelineSemaphore::getCounterValue()
......
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