Commit 483473ae by Sergey Ulanov Committed by Commit Bot

Vulkan: Relax ASSERT in SemaphoreVk::wait()

The assert in SemaphoreVk::wait() was verifying that acquired images don't have any staged updates. That assert was failing for images with emulated image formats, which may have staged updates to clear the image after initialization. Bug: chromium:1096746 Change-Id: I74658a8ae48e6c09aa4a859ceb1e2a7099e021c0 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2427551Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarMichael Spang <spang@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent e78d9a61
...@@ -138,8 +138,9 @@ angle::Result SemaphoreVk::wait(gl::Context *context, ...@@ -138,8 +138,9 @@ angle::Result SemaphoreVk::wait(gl::Context *context,
vk::CommandBuffer &commandBuffer = contextVk->getOutsideRenderPassCommandBuffer(); vk::CommandBuffer &commandBuffer = contextVk->getOutsideRenderPassCommandBuffer();
// Image should not be accessed while unowned. // Image should not be accessed while unowned. Emulated formats may have staged updates
ASSERT(!textureVk->getImage().hasStagedUpdates()); // to clear the image after initialization.
ASSERT(!image.hasStagedUpdates() || image.getFormat().hasEmulatedImageChannels());
// Queue ownership transfer and layout transition. // Queue ownership transfer and layout transition.
image.acquireFromExternal(contextVk, VK_QUEUE_FAMILY_EXTERNAL, rendererQueueFamilyIndex, image.acquireFromExternal(contextVk, VK_QUEUE_FAMILY_EXTERNAL, rendererQueueFamilyIndex,
......
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