anv: Ignore descriptor binding flags if bindingCount == 0
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 19 Apr 2019 19:43:01 +0000 (14:43 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 19 Apr 2019 23:26:41 +0000 (23:26 +0000)
commit2b388c3d0404ab8cc20945b9d4c369c9051c2205
treeeb5dd8a0676f593263aad52f419596fc4c0c2847
parent648cda258b48bd1dbd7af988e149320dfcee0998
anv: Ignore descriptor binding flags if bindingCount == 0

I missed this on the first go round.  The bindingCount field of
VkDescriptorSetLayoutBindingFlagsCreateInfoEXT is allowed to be zero
which means the flags array is ignored.

Fixes: d6c9bd6e01b4d "anv: Put binding flags in descriptor set layouts"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/vulkan/anv_descriptor_set.c