Do not use image index and semaphore when vkAcquireNextImageKHR fails
authorSÅ‚awomir Cygan <slawomir.cygan@intel.com>
Mon, 15 Feb 2021 14:35:21 +0000 (15:35 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 19 Feb 2021 13:04:07 +0000 (13:04 +0000)
commita85f4ea720bdbb6d2f969213f06850e93e0fea7a
treeefdc9fe5f7f3a8cfde83e481d7853e4906b42969
parent0fe00a91e069782bf0280eccf1d600dbc50f1243
Do not use image index and semaphore when vkAcquireNextImageKHR fails

This change follows d9763f6a0, where vkAcquireNextImageKHR was allowed
to fail with VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT error.
However, the (not) acquired image index and semaphore was still used,
causing fauilure when validating the index.

This change skips using the image index and semaphore, when image was
not acquired.

Moreover, failure to acquire the image is logged as quality warning.

VK-GL-CTS Issue: 2792

Affects: dEQP-VK.wsi.*.full_screen_exclusive.*

Components: Vulkan
Change-Id: I7c970289769fd56c9f46ac27cc6d23180e847d74
external/vulkancts/modules/vulkan/wsi/vktWsiFullScreenExclusiveTests.cpp