Fix subgroups tests using basePipelineHandle with index != -1
authorSlawomir Cygan <slawomir.cygan@intel.com>
Tue, 18 Feb 2020 16:18:01 +0000 (17:18 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 27 Feb 2020 11:16:01 +0000 (06:16 -0500)
The value of basePipelineIndex must be -1 when basePipelineHandle
is not null in VkComputePipelineCreateInfo  structure.

Components: Vulkan

VK-GL-CTS Issue: 2228

Change-Id: Iabbb98753179a0db6153853b9959eba6fee19ed1
Affects: dEQP-VK.subgroups.*compute*

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

index ff12585..3e31039 100644 (file)
@@ -3725,7 +3725,7 @@ Move<VkPipeline> makeComputePipeline(Context& context,
                pipelineShaderStageParams,                                              // VkPipelineShaderStageCreateInfo      stage;
                pipelineLayout,                                                                 // VkPipelineLayout                                     layout;
                basePipelineHandle,                                                             // VkPipeline                                           basePipelineHandle;
-               0,                                                                                              // deInt32                                                      basePipelineIndex;
+               -1,                                                                                             // deInt32                                                      basePipelineIndex;
        };
 
        return createComputePipeline(context.getDeviceInterface(),