diff options
author | Jason Ekstrand <[email protected]> | 2016-06-06 09:12:20 -0700 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-06-14 15:48:40 +0100 |
commit | 901c78786fe389cd2c54b4d4ccb8b7f6e9534093 (patch) | |
tree | 65fd0c96d33155966488c1af730731e9468e9337 | |
parent | 986159437d1647e261c2be31fabc2170afc44022 (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]>
(cherry picked from commit cd21015abd134aa815398e90714631d3f6601294)
-rw-r--r-- | src/intel/vulkan/anv_descriptor_set.c | 1 |
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; } |