Add missing 'FREE_DESCRIPTOR_SET' flag to a descriptor set pool
authorSÅ‚awomir Cygan <slawomir.cygan@intel.com>
Fri, 17 Jun 2022 13:52:26 +0000 (15:52 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 7 Jul 2022 21:06:36 +0000 (21:06 +0000)
The test seems to test vkFreeDescriptors, however the pool is missing
a flag that is required for that function to be used.

Spec says: VUID-vkFreeDescriptorSets-descriptorPool-00312
descriptorPool must have been created with the VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT flag

Components: Vulkan

VK-GL-CTS Issue: 3779

Affects: dEQP-VK.api.descriptor_pool.zero_pool_size_count

Change-Id: I04c1e67fcbdffa4b0eb1bf7ffbb0231fbe0bc45d

external/vulkancts/modules/vulkan/api/vktApiDescriptorPoolTests.cpp

index 92ce11c..ed538b0 100644 (file)
@@ -302,7 +302,7 @@ tcu::TestStatus zeroPoolSizeCount(Context& context)
        {
                VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,                          // VkStructureType                sType;
                DE_NULL,                                                                                                        // const void*                    pNext;
-               (VkDescriptorPoolCreateFlags)0,                                                         // VkDescriptorPoolCreateFlags    flags;
+               VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT,                      // VkDescriptorPoolCreateFlags    flags;
                1u,                                                                                                                     // uint32_t                       maxSets;
                0u,                                                                                                                     // uint32_t                       poolSizeCount;
                DE_NULL,                                                                                                        // const VkDescriptorPoolSize*    pPoolSizes;