From: iostrows Date: Fri, 22 Jan 2016 16:32:06 +0000 (+0100) Subject: In release version of deqp, pTessCreateInfo was nulled out when createGraphicsPipelin... X-Git-Tag: upstream/0.1.0~812^2~108^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4128e59bab9ef5b4d63ed7b095bfd0bac230f6e0;p=platform%2Fupstream%2FVK-GL-CTS.git 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. --- 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;