From b731cc15469f9cefbb2e80ff98d254350642e578 Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Wed, 15 Mar 2017 12:48:21 -0700 Subject: [PATCH] Fix dynamicStateCount = 0 in tessellation tests Change-Id: Ic90bbcda9342e4b9dcbe8f254e855de4f4032d68 --- external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.cpp b/external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.cpp index 57f423e..9f17879 100644 --- a/external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.cpp +++ b/external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.cpp @@ -734,7 +734,7 @@ Move GraphicsPipelineBuilder::build (const DeviceInterface& vk, (isRasterizationDisabled ? DE_NULL : &pipelineMultisampleStateInfo), // const VkPipelineMultisampleStateCreateInfo* pMultisampleState; (isRasterizationDisabled ? DE_NULL : &pipelineDepthStencilStateInfo), // const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState; (isRasterizationDisabled ? DE_NULL : &pipelineColorBlendStateInfo), // const VkPipelineColorBlendStateCreateInfo* pColorBlendState; - &pipelineDynamicStateInfo, // const VkPipelineDynamicStateCreateInfo* pDynamicState; + (dynamicStates.empty() ? DE_NULL : &pipelineDynamicStateInfo), // const VkPipelineDynamicStateCreateInfo* pDynamicState; pipelineLayout, // VkPipelineLayout layout; renderPass, // VkRenderPass renderPass; 0u, // deUint32 subpass; -- 2.7.4