From: Dave Airlie Date: Thu, 8 Mar 2018 00:15:12 +0000 (+1000) Subject: radv: drop assert on bindingDescriptorCount > 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b0f2081b5dc351d40d67b99f8f1def551a8374d;p=mesa.git radv: drop assert on bindingDescriptorCount > 0 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 Signed-off-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index daff7b2fcd5..3d56f8c2176 100644 --- a/src/amd/vulkan/radv_descriptor_set.c +++ b/src/amd/vulkan/radv_descriptor_set.c @@ -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;