Fixed primitive topology in tessellation
authoriostrows <igor.ostrowski@intel.com>
Thu, 21 Jan 2016 18:12:44 +0000 (19:12 +0100)
committerPiotrowski, Piotr <piotr.piotrowski@intel.com>
Fri, 22 Jan 2016 08:49:02 +0000 (09:49 +0100)
external/vulkancts/modules/vulkan/pipeline/vktPipelineTimestampTests.cpp

index 87487bc..907d403 100644 (file)
@@ -432,12 +432,13 @@ Move<VkPipeline> SimpleGraphicsPipelineBuilder::buildPipeline(tcu::UVec2 renderS
                vertexInputAttributeDescriptions,                               // const VkVertexInputAttributeDescription* pVertexAttributeDescriptions;
        };
 
+       VkPrimitiveTopology primitiveTopology = (m_patchControlPoints > 0) ? VK_PRIMITIVE_TOPOLOGY_PATCH_LIST : VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
        const VkPipelineInputAssemblyStateCreateInfo inputAssemblyStateParams =
        {
                VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO,    // VkStructureType                          sType;
                DE_NULL,                                                        // const void*                              pNext;
                0u,                                                             // VkPipelineInputAssemblyStateCreateFlags  flags;
-               VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST,                            // VkPrimitiveTopology                      topology;
+               primitiveTopology,                                              // VkPrimitiveTopology                      topology;
                VK_FALSE,                                                       // VkBool32                                 primitiveRestartEnable;
        };