Fix warning in vkQueryUtil.cpp
authorPyry Haulos <phaulos@google.com>
Wed, 30 Sep 2015 17:44:02 +0000 (10:44 -0700)
committerPyry Haulos <phaulos@google.com>
Wed, 30 Sep 2015 17:44:02 +0000 (10:44 -0700)
Change-Id: Ie39dd6585b6ee4445d11cfa2b3512eaeedc8ea3d

external/vulkancts/framework/vulkan/vkQueryUtil.cpp

index 05290f6..c3bda9a 100644 (file)
@@ -33,6 +33,7 @@
  *//*--------------------------------------------------------------------*/
 
 #include "vkQueryUtil.hpp"
+#include "deMemory.h"
 
 namespace vk
 {
@@ -75,7 +76,10 @@ std::vector<VkPhysicalDeviceQueueProperties> getPhysicalDeviceQueueProperties (c
 
 VkPhysicalDeviceMemoryProperties getPhysicalDeviceMemoryProperties (const InstanceInterface& vk, VkPhysicalDevice physicalDevice)
 {
-       VkPhysicalDeviceMemoryProperties        properties = {};
+       VkPhysicalDeviceMemoryProperties        properties;
+
+       deMemset(&properties, 0, sizeof(properties));
+
        VK_CHECK(vk.getPhysicalDeviceMemoryProperties(physicalDevice, &properties));
        return properties;
 }