Add calls to touchWatchdog()
...to prevent a timeout when creating eight pipelines with large compute
shaders.
Components: Vulkan
Affects:
dEQP-VK.subgroups.*
Change-Id: Icab408e382a5c4d582786128bb88188c657dd9da
diff --git a/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTestsUtils.cpp b/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTestsUtils.cpp
index cff6d12..c6fd9b5 100644
--- a/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTestsUtils.cpp
+++ b/external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTestsUtils.cpp
@@ -3479,10 +3479,13 @@
};
Move<VkPipeline> pipelines[localSizesToTestCount - 1];
+
+ context.getTestContext().touchWatchdog();
pipelines[0] =
makeComputePipeline(context, *pipelineLayout, *shaderModule,
VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT, (VkPipeline) DE_NULL,
localSizesToTest[0][0], localSizesToTest[0][1], localSizesToTest[0][2]);
+ context.getTestContext().touchWatchdog();
for (deUint32 index = 1; index < (localSizesToTestCount - 1); index++)
{
@@ -3490,10 +3493,12 @@
const deUint32 nextY = localSizesToTest[index][1];
const deUint32 nextZ = localSizesToTest[index][2];
+ context.getTestContext().touchWatchdog();
pipelines[index] =
makeComputePipeline(context, *pipelineLayout, *shaderModule,
VK_PIPELINE_CREATE_DERIVATIVE_BIT, *pipelines[0],
nextX, nextY, nextZ);
+ context.getTestContext().touchWatchdog();
}
for (deUint32 index = 0; index < (localSizesToTestCount - 1); index++)