From 9ae466f122458f3377a0e706258adb2f7fbe0270 Mon Sep 17 00:00:00 2001 From: Pierre Couillaud Date: Wed, 31 Oct 2018 04:57:40 -0700 Subject: [PATCH] Add watchdog touches to descriptor_pool test On some low-end devices, this test would hit the dEQP watchdog. Add some watchdog touches to avoid this. Cherry pick. Original commit: 123de98482b779ca242f9498701508b12e9a5f01 https://gerrit.khronos.org/c/vk-gl-cts/+/3197 Affected tests: dEQP-VK.api.descriptor_pool.* Google Bug: b/116847904 Component: Vulkan Signed-off-by: Pierre Couillaud VK-GL-CTS Issue: 1464 Change-Id: I18181aa274ab1dc191b5f0acbb58b41465b5cdad --- .../vulkancts/modules/vulkan/api/vktApiDescriptorPoolTests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/external/vulkancts/modules/vulkan/api/vktApiDescriptorPoolTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiDescriptorPoolTests.cpp index 96518dbde..c72254e0a 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiDescriptorPoolTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiDescriptorPoolTests.cpp @@ -144,6 +144,7 @@ tcu::TestStatus resetDescriptorPoolTest (Context& context, const ResetDescriptor for (deUint32 ndx = 0; ndx < params.m_numIterations; ++ndx) { + if (ndx % 1024 == 0) context.getTestContext().touchWatchdog(); // The test should crash in this loop at some point if there is a memory leak VK_CHECK(vkd.allocateDescriptorSets(device, &descriptorSetInfo, &testSets[0])); if (params.m_freeDescriptorSets) -- 2.34.1