From: Dave Airlie Date: Thu, 8 Mar 2018 00:15:12 +0000 (+1000) Subject: radv: drop assert on bindingDescriptorCount > 0 X-Git-Tag: upstream/18.1.0~915 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b0f2081b5dc351d40d67b99f8f1def551a8374d;p=platform%2Fupstream%2Fmesa.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 daff7b2..3d56f8c 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;