Commit cc9bc655 by Michael Spang Committed by Commit Bot

Vulkan: Fix synchronization with current surface

Since a6242e4d ("Vulkan: Support submitting multiple semaphores"), semaphores are not generated because the function generating checks for non-empty command graph right after flushing. Bug: angleproject:3492 Change-Id: I03db4a77fe24fdfdf39ba535b235451ae0275a0e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1638579Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Michael Spang <spang@chromium.org>
parent bc30e72c
...@@ -2383,7 +2383,7 @@ angle::Result ContextVk::updateDefaultAttribute(size_t attribIndex) ...@@ -2383,7 +2383,7 @@ angle::Result ContextVk::updateDefaultAttribute(size_t attribIndex)
angle::Result ContextVk::generateSurfaceSemaphores(SignalSemaphoreVector *signalSemaphores) angle::Result ContextVk::generateSurfaceSemaphores(SignalSemaphoreVector *signalSemaphores)
{ {
if (mCurrentWindowSurface && !mCommandGraph.empty()) if (mCurrentWindowSurface)
{ {
const vk::Semaphore *waitSemaphore = nullptr; const vk::Semaphore *waitSemaphore = nullptr;
const vk::Semaphore *signalSemaphore = nullptr; const vk::Semaphore *signalSemaphore = nullptr;
......
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