Merge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2
authorAlexander Galazin <alexander.galazin@arm.com>
Thu, 9 Jul 2020 15:25:52 +0000 (17:25 +0200)
committerAlexander Galazin <alexander.galazin@arm.com>
Thu, 9 Jul 2020 16:22:22 +0000 (18:22 +0200)
Change-Id: I4b1a75f774b599659cec5a866f74d4406ae3fd5b

1  2 
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTestsUtils.cpp

@@@ -3893,12 -3461,31 +3893,15 @@@ tcu::TestStatus vkt::subgroups::makeCom
        const Unique<VkCommandBuffer> cmdBuffer(
                makeCommandBuffer(context, *cmdPool));
  
 -      const deUint32 numWorkgroups[3] = {4, 2, 2};
 -
 -      const deUint32 localSizesToTestCount = 8;
 -      deUint32 localSizesToTest[localSizesToTestCount][3] =
 -      {
 -              {1, 1, 1},
 -              {subgroupSize, 1, 1},
 -              {1, subgroupSize, 1},
 -              {1, 1, subgroupSize},
 -              {32, 4, 1},
 -              {1, 4, 32},
 -              {3, 5, 7},
 -              {1, 1, 1} // Isn't used, just here to make double buffering checks easier
 -      };
 -
 -      Move<VkPipeline> pipelines[localSizesToTestCount - 1];
 +      Move<VkPipeline> *pipelines = new Move<VkPipeline>[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]);
 +                                                      pipelineShaderStageCreateFlags, VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT, (VkPipeline) DE_NULL,
 +                                                      localSizesToTest[0][0], localSizesToTest[0][1], localSizesToTest[0][2],
 +                                                      isRequiredSubgroupSize ? subgroupSize : 0u);
+       context.getTestContext().touchWatchdog();
  
        for (deUint32 index = 1; index < (localSizesToTestCount - 1); index++)
        {
                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);
 +                                                              pipelineShaderStageCreateFlags, VK_PIPELINE_CREATE_DERIVATIVE_BIT, *pipelines[0],
 +                                                              nextX, nextY, nextZ,
 +                                                              isRequiredSubgroupSize ? subgroupSize : 0u);
+               context.getTestContext().touchWatchdog();
        }
  
        for (deUint32 index = 0; index < (localSizesToTestCount - 1); index++)