diff options
author | Jason Ekstrand <[email protected]> | 2016-02-20 19:29:05 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-20 19:30:14 -0800 |
commit | b5868d2343dab94be6a8a8e56632fbd0c42a1a2c (patch) | |
tree | f781322abd324e7f46e77b8de0e41137fd14bcb6 /src | |
parent | bc696f1db69bf70cf1d1c4b6b837db25378b820c (diff) |
anv: Zero out the WSI array when initializing the instance
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |