TimeLine semaphores tests should check for the feature
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 9 Feb 2022 10:54:53 +0000 (11:54 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 17 Feb 2022 22:16:57 +0000 (22:16 +0000)
Recently new timeleine semaphores were added, but they were not
checking if time line semaphores are supported.

Affects:
dEQP-VK.api.external.semaphore.opaque_fd.info_timeline
dEQP-VK.api.external.semaphore.sync_fd.info_timeline

Components: Vulkan

VK-GL-CTS issue: 3510

Change-Id: Ic1029d82df6353fe831f0c791e08b7f4ca365b62

external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp

index ae945bb..57297c7 100644 (file)
@@ -800,6 +800,8 @@ tcu::TestStatus testSemaphoreQueries (Context& context, const TestSemaphoreQueri
 
        if (params.semaphoreType == vk::VK_SEMAPHORE_TYPE_TIMELINE)
        {
+               context.requireDeviceFunctionality("VK_KHR_timeline_semaphore");
+
                if (properties.compatibleHandleTypes & vk::VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT)
                        return tcu::TestStatus::fail("Timeline semaphores are not compatible with SYNC_FD");