From 8a6ba055aa65126573713cd20fbb99660a482917 Mon Sep 17 00:00:00 2001 From: Liam Middlebrook Date: Mon, 9 Jul 2018 12:27:02 -0700 Subject: [PATCH] Don't fail DisplayPlaneProperties2 with no display Instead, we should mark this test as not supported. The Vulkan spec states that: Devices must support at least one plane on each display If there are no displays connected, the driver is allowed to return 0 planes. VK-GL-CTS issue: 1271 Components: Vulkan Change-Id: I097224fbdf3e25c921ac9b96d16954caab1bb895 Affects: dEQP-VK.wsi.display.get_display_plane_properties2 --- external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp b/external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp index 6bcf6ae..7407274 100644 --- a/external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp +++ b/external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp @@ -1836,7 +1836,7 @@ tcu::TestStatus DisplayCoverageTestInstance::testGetPhysicalDeviceDisplayPlanePr TCU_FAIL("Failed to retrieve displays"); if (displaysVector.empty()) - TCU_FAIL("No displays reported"); + TCU_THROW(NotSupportedError, "No displays reported"); displaySet = DisplaySet(displaysVector.begin(), displaysVector.end()); -- 2.7.4