radv: Fix GetDescriptorSetLayoutSupport.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 9 Apr 2018 21:36:19 +0000 (23:36 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 18 Apr 2018 20:56:54 +0000 (22:56 +0200)
The continue means we do alignment differently than during creation,
making the buffer smaller than expected.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_descriptor_set.c

index 1100ca182b1e6e954e028ffb066195889c991b5f..7a3a611dd689ad4267ebaabc7c51f1cd02d66ebf 100644 (file)
@@ -230,9 +230,6 @@ void radv_GetDescriptorSetLayoutSupport(VkDevice device,
        for (uint32_t i = 0; i < pCreateInfo->bindingCount; i++) {
                const VkDescriptorSetLayoutBinding *binding = bindings + i;
 
-               if (binding->descriptorCount == 0)
-                       continue;
-
                uint64_t descriptor_size = 0;
                uint64_t descriptor_alignment = 1;
                switch (binding->descriptorType) {