anv: Zero out the WSI array when initializing the instance
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 21 Feb 2016 03:29:05 +0000 (19:29 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 21 Feb 2016 03:30:14 +0000 (19:30 -0800)
src/intel/vulkan/anv_device.c

index a8835f74179726ff28a4dc075dda33259efba3f7..7a5cb234ac5b0dddab6595557f62b264461f5be9 100644 (file)
@@ -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));