Descriptor pool is created with not enough storage for a used descriptor type - incre...
authorpflisiko <pawel.flisikowski@intel.com>
Thu, 14 Jan 2016 13:27:41 +0000 (14:27 +0100)
committerscygan <slawomir.cygan@intel.com>
Thu, 14 Jan 2016 16:22:06 +0000 (17:22 +0100)
external/vulkancts/modules/vulkan/compute/vktComputeIndirectComputeDispatchTests.cpp

index d8476eb..15b361a 100644 (file)
@@ -267,7 +267,7 @@ tcu::TestStatus IndirectDispatchInstanceBufferUpload::iterate (void)
        // Create descriptor pool
        const vk::Unique<vk::VkDescriptorPool> descriptorPool(
                vk::DescriptorPoolBuilder()
-               .addType(vk::VK_DESCRIPTOR_TYPE_STORAGE_BUFFER)
+               .addType(vk::VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, (deUint32)m_dispatchCommands.size())
                .build(m_device_interface, m_device, vk::VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, static_cast<deUint32>(m_dispatchCommands.size())));
 
        const vk::VkBufferMemoryBarrier ssboPostBarrier = makeBufferMemoryBarrier(