[Mesa-dev] [PATCH 1/5] anv/descriptor_set: Set array_size to zero for non-existant descriptors

Jason Ekstrand jason at jlekstrand.net
Mon Jun 6 18:26:28 UTC 2016


Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Cc: Kristian Høgsberg Kristensen <krh at bitplanet.net>
---
 src/intel/vulkan/anv_descriptor_set.c | 1 +
 1 file changed, 1 insertion(+)

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;
    }
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list