From cd21015abd134aa815398e90714631d3f6601294 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 6 Jun 2016 09:12:20 -0700 Subject: anv/descriptor_set: Set array_size to zero for non-existant descriptors Signed-off-by: Jason Ekstrand Cc: "12.0" --- src/intel/vulkan/anv_descriptor_set.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/intel/vulkan') 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; } -- cgit v1.2.3