From 4128e59bab9ef5b4d63ed7b095bfd0bac230f6e0 Mon Sep 17 00:00:00 2001 From: iostrows Date: Fri, 22 Jan 2016 17:32:06 +0100 Subject: [PATCH] In release version of deqp, pTessCreateInfo was nulled out when createGraphicsPipeline was called. This was because tessStateCreateInfo was created in an 'if' block (line 572), making it invisible outside of that scope. Moving declaration of tessStateCreateInfo outside of that scope fixes the issue on both release and debug version of deqp and createGraphicsPipeline sends valid data. --- .../vulkancts/modules/vulkan/pipeline/vktPipelineTimestampTests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/pipeline/vktPipelineTimestampTests.cpp b/external/vulkancts/modules/vulkan/pipeline/vktPipelineTimestampTests.cpp index 907d403..37a455a 100644 --- a/external/vulkancts/modules/vulkan/pipeline/vktPipelineTimestampTests.cpp +++ b/external/vulkancts/modules/vulkan/pipeline/vktPipelineTimestampTests.cpp @@ -568,9 +568,10 @@ Move SimpleGraphicsPipelineBuilder::buildPipeline(tcu::UVec2 renderS }; const VkPipelineTessellationStateCreateInfo* pTessCreateInfo = DE_NULL; + VkPipelineTessellationStateCreateInfo tessStateCreateInfo; if(m_patchControlPoints > 0) { - const VkPipelineTessellationStateCreateInfo tessStateCreateInfo = + tessStateCreateInfo = { VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO, // VkStructureType sType; DE_NULL, // const void* pNext; -- 2.7.4