diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-06-06 09:12:20 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-06-10 09:42:45 -0700 |
commit | cd21015abd134aa815398e90714631d3f6601294 (patch) | |
tree | 8da5c805617898ece7bf9a0c01db5114579be588 /src/intel | |
parent | 2ad443e4cc0a72b7d0b28195b5810cbf197961cb (diff) | |
download | external_mesa3d-cd21015abd134aa815398e90714631d3f6601294.zip external_mesa3d-cd21015abd134aa815398e90714631d3f6601294.tar.gz external_mesa3d-cd21015abd134aa815398e90714631d3f6601294.tar.bz2 |
anv/descriptor_set: Set array_size to zero for non-existant descriptors
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/intel')
-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 f7a9cb0..3924d04 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; } |