Fix VU error in swapchain creation tests
authorRicardo Garcia <rgarcia@igalia.com>
Tue, 26 Nov 2019 16:13:23 +0000 (17:13 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 17 Dec 2019 10:24:38 +0000 (05:24 -0500)
commit9be928d52395479fe7ddb9c7ef4af02f462c7990
tree9ca8139a06954c5c8a77fb4c419dc2f1843458c4
parent25cea378225b4712e4b3e7d445ce19a51b7aa69f
Fix VU error in swapchain creation tests

dEQP-VK.wsi.*.swapchain.create.image_sharing_mode checks if creating a
swapchain works with VK_SHARING_MODE_CONCURRENT, but passes a single
queue in the creation structure.

This commit changes the test to obtain all valid queue families for the
surface and uses all of them in the creation structure when using
concurrent sharing.

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

Components: Vulkan
VK-GL-CTS issue: 2126

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