From b5868d2343dab94be6a8a8e56632fbd0c42a1a2c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 20 Feb 2016 19:29:05 -0800 Subject: [PATCH] anv: Zero out the WSI array when initializing the instance --- src/intel/vulkan/anv_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index a8835f74179..7a5cb234ac5 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -254,6 +254,8 @@ VkResult anv_CreateInstance( instance->apiVersion = client_version; instance->physicalDeviceCount = -1; + memset(instance->wsi, 0, sizeof(instance->wsi)); + _mesa_locale_init(); VG(VALGRIND_CREATE_MEMPOOL(instance, 0, false)); -- 2.30.2