Fix init error
authorAlexander Galazin <alexander.galazin@arm.com>
Sun, 8 Dec 2019 20:53:00 +0000 (21:53 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 17 Dec 2019 10:28:56 +0000 (05:28 -0500)
Components: Vulkan

Change-Id: I32a3f494fdd0690ad839ff317d9458dd2644d04b

external/vulkancts/modules/vulkan/util/vktExternalMemoryUtil.cpp

index d6b990e..acf88f3 100644 (file)
@@ -1629,12 +1629,10 @@ vk::VkPhysicalDeviceExternalMemoryHostPropertiesEXT getPhysicalDeviceExternalMem
                0u,
        };
 
-       vk::VkPhysicalDeviceProperties2 props2 =
-       {
-               vk::VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2,
-               &externalProps,
-               {}
-       };
+       vk::VkPhysicalDeviceProperties2 props2;
+       deMemset(&props2, 0, sizeof(props2));
+       props2.sType = vk::VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2;
+       props2.pNext = &externalProps;
 
        vki.getPhysicalDeviceProperties2(physicalDevice, &props2);