radv: drop assert on bindingDescriptorCount > 0
authorDave Airlie <airlied@redhat.com>
Thu, 8 Mar 2018 00:15:12 +0000 (10:15 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 14 Mar 2018 06:54:52 +0000 (16:54 +1000)
The spec is pretty clear that this can be 0, and that it operates
as a reserved binding.

Fixes:
dEQP-VK.binding_model.descriptor_update.empty_descriptor.uniform_buffer

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_descriptor_set.c

index daff7b2fcd5f612d512834148d0af9a3d393188e..3d56f8c2176fbed6434e5c268aba2169526c6ddb 100644 (file)
@@ -137,7 +137,6 @@ VkResult radv_CreateDescriptorSetLayout(
                }
 
                set_layout->size = align(set_layout->size, alignment);
-               assert(binding->descriptorCount > 0);
                set_layout->binding[b].type = binding->descriptorType;
                set_layout->binding[b].array_size = binding->descriptorCount;
                set_layout->binding[b].offset = set_layout->size;