From: Jason Ekstrand Date: Mon, 6 Jun 2016 16:12:20 +0000 (-0700) Subject: anv/descriptor_set: Set array_size to zero for non-existant descriptors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd21015abd134aa815398e90714631d3f6601294;p=mesa.git anv/descriptor_set: Set array_size to zero for non-existant descriptors Signed-off-by: Jason Ekstrand Cc: "12.0" --- diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c index f7a9cb05fa3..3924d04310e 100644 --- a/src/intel/vulkan/anv_descriptor_set.c +++ b/src/intel/vulkan/anv_descriptor_set.c @@ -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; }