Fix swapchain creation in dEQP-VK.wsi.*.swapchain.*
authorChad Versace <chadversary@google.com>
Mon, 15 Oct 2018 19:45:46 +0000 (12:45 -0700)
committerChris Forbes <chrisforbes@google.com>
Thu, 8 Nov 2018 00:51:53 +0000 (19:51 -0500)
commit276b8a9ec1304d7fbeb230c1e406bad5f2bc9ede
tree2f393d88644d1ee5a8daf8fab696fc913f703314
parent6ddfa83ac047dce83fe7d29e4f6954d8e71d507f
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
(cherry picked from commit 49eab80e4a8b3af1790b9ac88b096aa9bffd193f)
external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp