Fix link time optimization tests
authorPiotr Byszewski <piotr.byszewski@mobica.com>
Wed, 23 Mar 2022 19:12:24 +0000 (20:12 +0100)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Wed, 23 Mar 2022 19:12:24 +0000 (20:12 +0100)
Vertex input state for all pipeline_library tests didn't
have VK_PIPELINE_CREATE_RETAIN_LINK_TIME_OPTIMIZATION_INFO_BIT_EXT
set (all other states had this flag set). This change fixes that.

Components: Vulkan

VK-GL-CTS issue: 3578

Affects:
dEQP-VK.dynamic_state.pipeline_library.*
dEQP-VK.pipeline.pipeline_library.*
dEQP-VK.fragment_shading_rate.pipeline_library.*

Change-Id: Ic8ec0bb141dc7a1670ba3baee0229baf5203eae0

external/vulkancts/framework/vulkan/vkPipelineConstructionUtil.cpp

index 160ff86..75eba56 100644 (file)
@@ -459,7 +459,7 @@ GraphicsPipelineWrapper& GraphicsPipelineWrapper::setupVertexInputStete(const Vk
                pipelinePartCreateInfo.pInputAssemblyState      = pInputAssemblyState;
                pipelinePartCreateInfo.pDynamicState            = m_internalData->pDynamicState;
 
-               if (m_internalData->pipelineConstructionType == PIPELINE_CONSTRUCTION_TYPE_FAST_LINKED_LIBRARY)
+               if (m_internalData->pipelineConstructionType == PIPELINE_CONSTRUCTION_TYPE_LINK_TIME_OPTIMIZED_LIBRARY)
                        pipelinePartCreateInfo.flags |= VK_PIPELINE_CREATE_RETAIN_LINK_TIME_OPTIMIZATION_INFO_BIT_EXT;
 
                m_pipelineParts[0] = createGraphicsPipeline(m_internalData->vk, m_internalData->device, partPipelineCache, &pipelinePartCreateInfo);