Adds reset watchdog timer to timeline sempahore tests
authorMatthew Netsch <quic_mnetsch@quicinc.com>
Wed, 10 Aug 2022 16:29:24 +0000 (09:29 -0700)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 25 Aug 2022 18:23:03 +0000 (18:23 +0000)
Tests go through many iterations which exceeds test
max time when matchdog timer is enabled

Components: Vulkan
VK-GL-CTS Issue: 3884

Affects:
dEQP-VK.synchronization*.basic.timeline_semaphore.chain

Change-Id: Id257b7162d49cfaf5b78c198cdc932f74c0d4a2b

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

index e324e20..a12d9b7 100644 (file)
@@ -134,6 +134,8 @@ tcu::TestStatus basicChainCase(Context & context, TestConfig config)
 
        for (int i = 0; err == VK_SUCCESS && i < basicChainLength; i++)
        {
+               if (i % (basicChainLength/4) == 0) context.getTestContext().touchWatchdog();
+
                err = vk.createSemaphore(device, &sci, DE_NULL, &pSignalSemaphoreInfo->semaphore);
                if (err != VK_SUCCESS)
                        continue;
@@ -196,6 +198,8 @@ tcu::TestStatus basicChainTimelineCase (Context& context, TestConfig config)
 
        for (int i = 0; err == VK_SUCCESS && i < basicChainLength; i++)
        {
+               if (i % (basicChainLength/4) == 0) context.getTestContext().touchWatchdog();
+
                pSignalSemaphoreInfo->value = static_cast<deUint64>(i+1);
 
                SynchronizationWrapperPtr synchronizationWrapper = getSynchronizationWrapper(config.type, vk, DE_TRUE);