Fix swapchain creation in dEQP-VK.wsi.*.swapchain.*
authorChad Versace <chadversary@google.com>
Mon, 15 Oct 2018 19:45:46 +0000 (12:45 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 1 Nov 2018 09:44:44 +0000 (05:44 -0400)
commit49eab80e4a8b3af1790b9ac88b096aa9bffd193f
treef9e7dc67cb0e6b78d16c080d0b2a921ed038c95f
parenteedbc902ff4c27ed4f61a416baf4e345036f31cc
Fix swapchain creation in dEQP-VK.wsi.*.swapchain.*

In the Vulkan 1.1.87 spec release, the release fixed a bug in
VkSwapchainCreateInfoKHR by adding the following VU:

    * imageFormat, imageUsage, imageExtent, and imageArrayLayers must be
      supported for VK_IMAGE_TYPE_2D VK_IMAGE_TILING_OPTIMAL images as
      reported by vkGetPhysicalDeviceImageFormatProperties.

Jesse Hall authored the fix in response to behavior discovered by Chad
Versace while debugging failures in dEQP-VK.wsi.android.swapchain.* on
Intel Chrome OS devices.  This patch fixes the failing tests to comply
with the spec bugfix.

Components: Vulkan
VK-GL-CTS Issue: 1395
Affects: dEQP-VK.wsi.*.swapchain.*
See-Also: https://gitlab.khronos.org/vulkan/vulkan/issues/1029
Change-Id: I959774833d03b63eb6e23fbd3a7ff33378b44110
external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp