anv/descriptor_set: Set array_size to zero for non-existant descriptors
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 6 Jun 2016 16:12:20 +0000 (09:12 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jun 2016 16:42:45 +0000 (09:42 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_descriptor_set.c

index f7a9cb05fa36a7eef90d95364f446e6f47f68f66..3924d04310ef2696541a3f567cd75d919fa3e6ca 100644 (file)
@@ -73,6 +73,7 @@ VkResult anv_CreateDescriptorSetLayout(
       /* Initialize all binding_layout entries to -1 */
       memset(&set_layout->binding[b], -1, sizeof(set_layout->binding[b]));
 
+      set_layout->binding[b].array_size = 0;
       set_layout->binding[b].immutable_samplers = NULL;
    }