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>
(cherry picked from commit cd21015abd)
This commit is contained in:
Jason Ekstrand 2016-06-06 09:12:20 -07:00 committed by Emil Velikov
parent 986159437d
commit 901c78786f

View file

@ -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;
}