anv: VkDescriptorSetLayoutBinding can have descriptorCount == 0
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 11 Jan 2018 10:15:30 +0000 (11:15 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 12 Jan 2018 06:08:51 +0000 (07:08 +0100)
commite63adf8b1ea56c9c2d0794f563bced765fb8300a
tree9bef57d735afafde602952101aa6f64f62a03839
parent734bef372d80a2ebf5677eb4fbd0e939f2b3cfb4
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
src/intel/vulkan/anv_descriptor_set.c