vector<VkDescriptorSet> testSets(numDescriptorSetsPerIter);
- for (deUint32 ndx = 0; ndx < numIterations; ++ndx)
+ 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)
+ VK_CHECK(vkd.freeDescriptorSets(device, *descriptorPool, 1, &testSets[0]));
VK_CHECK(vkd.resetDescriptorPool(device, *descriptorPool, 0));
}