commit | 6892a30f3395382890a8e90349e407513f8e4801 | [log] [tgz] |
---|---|---|
author | Matthew Netsch <quic_mnetsch@quicinc.com> | Wed Sep 02 13:17:16 2020 -0400 |
committer | Alexander Galazin <Alexander.Galazin@arm.com> | Thu Sep 03 10:58:15 2020 -0400 |
tree | 7f2bbc83eb9e16efac9e5fd29c6c485538a8beb8 | |
parent | acd41b7a1e516e6fa485f8074cd12db4c12a3d4d [diff] |
Fixes missing timeline semaphore checks Components: Vulkan VK-GL-CTS Issue: 2572 Affects: dEQP-VK.synchronization.op.multi_queue.* dEQP-VK.synchronization.smoke.timeline_semaphores Change-Id: I9829ae9f09ca3a45c6ce7a6aad5ad21c6caad3cd
diff --git a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperationMultiQueueTests.cpp b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperationMultiQueueTests.cpp index 5046ec8..dc4645f 100644 --- a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperationMultiQueueTests.cpp +++ b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationOperationMultiQueueTests.cpp
@@ -500,6 +500,9 @@ deUint32 maxQueues = 0; std::vector<deUint32> queueFamilies; + if (!context.getTimelineSemaphoreFeatures().timelineSemaphore) + TCU_THROW(NotSupportedError, "Timeline semaphore not supported"); + if (m_queues->totalQueueCount() < 2) TCU_THROW(NotSupportedError, "Not enough queues");
diff --git a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationSmokeTests.cpp b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationSmokeTests.cpp index a3a36b5..67f1b8a 100644 --- a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationSmokeTests.cpp +++ b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationSmokeTests.cpp
@@ -1092,6 +1092,9 @@ tcu::TestStatus testSemaphores (Context& context, VkSemaphoreType semaphoreType) { + if (semaphoreType == VK_SEMAPHORE_TYPE_TIMELINE_KHR && !context.getTimelineSemaphoreFeatures().timelineSemaphore) + TCU_THROW(NotSupportedError, "Timeline semaphore not supported"); + TestLog& log = context.getTestContext().getLog(); const PlatformInterface& platformInterface = context.getPlatformInterface(); const InstanceInterface& instanceInterface = context.getInstanceInterface();