summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-06-06 09:12:20 -0700
committerJason Ekstrand <[email protected]>2016-06-10 09:42:45 -0700
commitcd21015abd134aa815398e90714631d3f6601294 (patch)
tree8da5c805617898ece7bf9a0c01db5114579be588
parent2ad443e4cc0a72b7d0b28195b5810cbf197961cb (diff)
anv/descriptor_set: Set array_size to zero for non-existant descriptors
Signed-off-by: Jason Ekstrand <[email protected]> Cc: "12.0" <[email protected]>
-rw-r--r--src/intel/vulkan/anv_descriptor_set.c1
1 files changed, 1 insertions, 0 deletions
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;
}