Fix several issues in swapchain tests
authorRicardo Garcia <rgarcia@igalia.com>
Fri, 28 May 2021 11:53:56 +0000 (13:53 +0200)
committerRicardo Garcia <rgarcia@igalia.com>
Fri, 28 May 2021 13:25:47 +0000 (15:25 +0200)
commitfa9555b15fc8216794e73a9c20a6988a7e3b8e95
tree6b677cdc5ff23144f048b68eaf618a8309b6c389
parent301c792f7e6ed38d14d2e2a9b9c1138a3ebb27c7
Fix several issues in swapchain tests

This commit fixes the following issues found in the swapchain tests:

- The initial image layout in some render passes did not match the
  actual image layout when starting the render pass.

- image_swapchain_create_info tests were using VK_KHR_bind_memory2
  functions without activating the extension on the device or making
  sure it was core in the used Vulkan API version.

- Many devices were being created with the wrong instance, using the
  context instance instead of the custom instance created for the tests.

- Several tests using VK_SHARING_MODE_CONCURRENT did not check for the
  availability of two queues or were always using one, which is invalid.

- VkDeviceGroupSwapchainCreateInfoKHR had a wrong sType.

- Swapchain resize tests were calling vkBeginCommandBuffer() on active
  command buffers without waiting for them to complete execution.

- Typos and other minor issues.

Affected tests:
dEQP-VK.wsi.*.swapchain.*

Components: Vulkan
VK-GL-CTS issue: 2941

Change-Id: I54d5f46cbcb76617260439a59bf3aef4028309bb
external/vulkancts/framework/vulkan/vkWsiUtil.cpp
external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp