From: Jason Ekstrand Date: Sun, 21 Feb 2016 03:29:05 +0000 (-0800) Subject: anv: Zero out the WSI array when initializing the instance X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5868d2343dab94be6a8a8e56632fbd0c42a1a2c;p=mesa.git anv: Zero out the WSI array when initializing the instance --- 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));