Check timeline semaphore features only when used.
authorIgor Ostrowski <igor.ostrowski@intel.com>
Thu, 26 Sep 2019 13:09:28 +0000 (15:09 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 8 Oct 2019 17:42:56 +0000 (13:42 -0400)
Affects:
dEQP-VK.synchronization.op.multi_queue.*

Components: Vulkan
VK-GL-CTS issue: 2025

Change-Id: I8c586bcb0199ab00fe6fffb9290abd2b06523916
(cherry picked from commit c20bf2e3023cb209ae3ec04b6e6339f8c3930dfb)

external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperationMultiQueueTests.cpp

index 212059b..102c46f 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);