commit | 68b584f970048e2dd542941684abe48a95dad28b | [log] [tgz] |
---|---|---|
author | Yilong Li <liyl@google.com> | Wed Jun 23 12:43:57 2021 -0700 |
committer | Yahan Zhou <yahan@google.com> | Wed Jun 23 15:21:12 2021 -0700 |
tree | ae573095273b4918e491991f969b127844b6d567 | |
parent | 75164d849aa19d18cb942db1046b86cc67b78587 [diff] |
vk: only set MemoryReportFeatures if it exists in the struct chain vkGetPhysicalDeviceProperties2() should only sets the VkPhysicalDeviceDeviceMemoryReportFeaturesEXT struct if it exists in the pProperties struct chain, otherwise it violates the Vulkan specs and could cause a memory leak. Bug: 189960236 Test: com.google.android.graphics.gts.VulkanTest#checkVulkanDeviceMemoryReportSupport Change-Id: Icde88dfd7eab73b88513a1493c942119a6f064fc