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