mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
anv: VkDescriptorSetLayoutBinding can have descriptorCount == 0
From Vulkan spec: "descriptorCount is the number of descriptors contained in the binding, accessed in a shader as an array. If descriptorCount is zero this binding entry is reserved and the resource must not be accessed from any stage via this binding within any pipeline using the set layout." Fixes: dEQP-VK.binding_model.descriptor_update.empty_descriptor.uniform_buffer Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
734bef372d
commit
e63adf8b1e
1 changed files with 3 additions and 1 deletions
|
|
@ -103,7 +103,9 @@ VkResult anv_CreateDescriptorSetLayout(
|
|||
if (binding == NULL)
|
||||
continue;
|
||||
|
||||
assert(binding->descriptorCount > 0);
|
||||
if (binding->descriptorCount == 0)
|
||||
continue;
|
||||
|
||||
#ifndef NDEBUG
|
||||
set_layout->binding[b].type = binding->descriptorType;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue