Fix dynamicStateCount = 0 in tessellation tests
authorPyry Haulos <phaulos@google.com>
Wed, 15 Mar 2017 19:48:21 +0000 (12:48 -0700)
committerPyry Haulos <phaulos@google.com>
Wed, 15 Mar 2017 19:48:21 +0000 (12:48 -0700)
Change-Id: Ic90bbcda9342e4b9dcbe8f254e855de4f4032d68

external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.cpp

index 57f423e..9f17879 100644 (file)
@@ -734,7 +734,7 @@ Move<VkPipeline> 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;