Fix wsi tests using disallowed image usage
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 30 Sep 2020 15:19:27 +0000 (18:19 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 8 Oct 2020 07:10:08 +0000 (03:10 -0400)
commit04592e576d2f1b2acc908ec4e079118d796228d5
tree53a498ea5aa464b394d0895e0666602e0dadf957
parent2b6f907e04c3e1696a3045d3c9c7550ac9540cc5
Fix wsi tests using disallowed image usage

Even though STORAGE usage might be reported by
VkSurfaceCapabilitiesKHR::supportedUsageFlags, an application should
always verify whether for a given format the STORAGE usage is
supported through vkGetPhysicalDeviceImageFormatProperties().

This also fixes validation layer warnings
(VUID-VkSwapchainCreateInfoKHR-imageFormat-01778).

Affects:
dEQP-VK.wsi.*.swapchain.simulate_oom.image_usage

Components: Vulkan

VK-GL-CTS issue: 2602

Change-Id: I21a5faff6206bdeaf6ecd5d8c8024d17965db548
external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp