Check timeline semaphore features only when used.
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / synchronization / vktSynchronizationOperationMultiQueueTests.cpp
index 3cca8ce..8c7c3c6 100644 (file)
@@ -155,7 +155,7 @@ class MultiQueues
                                &context.getDeviceFeatures()                                                                    //const VkPhysicalDeviceFeatures*       pEnabledFeatures;
                        };
 
-                       if (!context.getTimelineSemaphoreFeatures().timelineSemaphore)
+                       if (timelineSemaphore && !context.getTimelineSemaphoreFeatures().timelineSemaphore)
                                TCU_THROW(NotSupportedError, "Timeline semaphore not supported");
 
                        m_logicalDevice = createDevice(context.getPlatformInterface(), context.getInstance(), instance, physicalDevice, &deviceInfo);