Fix recent regression binding unallocated descriptor set
authorJeff Bolz <jbolz@nvidia.com>
Wed, 13 Jan 2016 04:51:29 +0000 (04:51 +0000)
committerJeff Bolz <jbolz@nvidia.com>
Wed, 13 Jan 2016 04:51:29 +0000 (04:51 +0000)
external/vulkancts/modules/vulkan/shaderrender/vktShaderRender.cpp

index 17a3a4928bd12546193b76c5c7c763bba71af9d9..93562a987421e447256e675606a39c8c55f71745 100644 (file)
@@ -1586,7 +1586,8 @@ void ShaderRenderCaseInstance::render (tcu::Surface& result, const QuadGrid& qua
                vk.cmdBeginRenderPass(*m_cmdBuffer, &renderPassBeginInfo, VK_SUBPASS_CONTENTS_INLINE);
 
                vk.cmdBindPipeline(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_graphicsPipeline);
-               vk.cmdBindDescriptorSets(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipelineLayout, 0u, 1, &*m_descriptorSet, 0u, DE_NULL);
+               if (!m_uniformInfos.empty())
+                       vk.cmdBindDescriptorSets(*m_cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipelineLayout, 0u, 1, &*m_descriptorSet, 0u, DE_NULL);
                vk.cmdBindIndexBuffer(*m_cmdBuffer, *m_indiceBuffer, 0, VK_INDEX_TYPE_UINT16);
 
                const deUint32 numberOfVertexAttributes = (deUint32)m_vertexBuffers.size();