Add hasDisplay check after createWsiDisplay throws
authorygole <ygole@nvidia.com>
Wed, 27 Mar 2019 11:38:37 +0000 (17:08 +0530)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 23 Apr 2019 10:17:03 +0000 (06:17 -0400)
commite13395f07f852f6a0d429f96be969c8fd3e479cb
treed9d2c8ac6574ade4f54757cd14b2898ccbb809eb
parentd8f8efb7ffec5b825ef58b82b0d9a5eacf9a54e4
Add hasDisplay check after createWsiDisplay throws

Commit b7efacd7b3 (Check if CTS has platform display for wsi-type) added
checks after createWsiDisplay failure to prevent reporting test failure
if native display for requested wsi-type isn't avaiable. This situation
can occur if vulkan driver supports multiple wsi extensions and only one
native display is available. Change did not fix all the places where
createWsiDisplay is called. The check is missing in file
vktImageMutableTests.cpp so fix it.

Affects: dEQP-VK.image.swapchain_mutable.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1558

Change-Id: Iffc50a70ed48fb18c4d609c8d74b8e4615e4297d
(cherry picked from commit 984a7606ec93dfe90a17127357c7f0b0262bcd51)
external/vulkancts/modules/vulkan/image/vktImageMutableTests.cpp