Commit 191a84a8 by jchen10 Committed by Commit Bot

Fix VK_NOT_READY for vkAcquireNextImageKHR

The error was not handled, as is the cause for the bug. So far we'd better wait until a valid image index is ready. BUG=angleproject:2301 Change-Id: I49a5545d0f2e0cf6cfbb3f604ab0602f8a131d12 Reviewed-on: https://chromium-review.googlesource.com/895402 Commit-Queue: Yuly Novikov <ynovikov@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org>
parent 9bf55527
......@@ -462,9 +462,7 @@ vk::Error WindowSurfaceVk::nextSwapchainImage(RendererVk *renderer)
{
VkDevice device = renderer->getDevice();
// Use a timeout of zero for AcquireNextImage so we don't actually block.
// TODO(jmadill): We should handle VK_NOT_READY and block until we can acquire the image.
ANGLE_VK_TRY(vkAcquireNextImageKHR(device, mSwapchain, 0,
ANGLE_VK_TRY(vkAcquireNextImageKHR(device, mSwapchain, UINT64_MAX,
mAcquireNextImageSemaphore.getHandle(), VK_NULL_HANDLE,
&mCurrentSwapchainImageIndex));
......
......@@ -245,9 +245,6 @@ TEST_P(SimpleOperationTest, DrawQuad)
// Simple repeated draw and swap test.
TEST_P(SimpleOperationTest, DrawQuadAndSwap)
{
// anglebug.com/2301
ANGLE_SKIP_TEST_IF(IsLinux() && IsIntel() && IsVulkan());
const std::string &vertexShader =
"attribute vec3 position;\n"
"void main()\n"
......
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