Linux WSI checks the WS availability on create
authorTony Zlatinski <tzlatinski@nvidia.com>
Tue, 16 Jun 2020 13:04:08 +0000 (08:04 -0500)
committerTony Zlatinski <tzlatinski@nvidia.com>
Thu, 18 Jun 2020 15:22:34 +0000 (10:22 -0500)
commit5e372abdf23e14ca68715da7142026fee8ceb533
treec0e63f84f7c0dc937d72e13d7bbf890eb4869cf9
parent31c5eed5b15ac535a166339474ef8b9cbd6a6a32
Linux WSI checks the WS availability on create

Before creating a display of a specific WSI type,
check for the server availability, first. If the display server of
the requested WSI type (XLIB/XCB/WAYLAND) is not present/running,
then when throw an exception of type NotSupportedError
rather than one of type ResourceError.

This would allow for the tests to be marked as unsupported,
rather than causing the CTS to crash/exit.

Affects: dEQP-VK.wsi.wayland.*
         dEQP-VK.wsi.xcb.*
         dEQP-VK.wsi.xlib.*
         dEQP-VK.image.swapchain*

Components: Vulkan, WSI, Linux platform

VK-GL-CTS issue: 2422

Change-Id: I7538be79e528ed9cde38cff3404b5f3603bdf5c1
framework/platform/lnx/tcuLnxVulkanPlatform.cpp