commit | 1fe7b5c8d86832f7e89cf51ea760102188e0d3cb | [log] [tgz] |
---|---|---|
author | Yiwei Zhang <zzyiwei@google.com> | Mon Apr 05 01:26:49 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Apr 05 01:26:49 2021 +0000 |
tree | 7647a124110e772615b9aff23c8a1bba0d3eb515 | |
parent | 332edaa92aa6ad110483f60d71cbdacc19187e43 [diff] | |
parent | 4a2b628262f48aaa88865a57e1ccac3cb33d1b13 [diff] |
Merge "vkjson: fix VkPhysicalDeviceGroupProperties init" am: 97589e43b7 am: 4a2b628262 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1663846 Change-Id: Ia21c443bd8fb856986af0955b6602314aeb8542d
diff --git a/vulkan/vkjson/vkjson_instance.cc b/vulkan/vkjson/vkjson_instance.cc index 73586d4..c3f4963 100644 --- a/vulkan/vkjson/vkjson_instance.cc +++ b/vulkan/vkjson/vkjson_instance.cc
@@ -433,6 +433,10 @@ VkJsonDeviceGroup device_group; std::vector<VkPhysicalDeviceGroupProperties> group_properties; group_properties.resize(count); + for (auto& properties : group_properties) { + properties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES; + properties.pNext = nullptr; + } result = (*vkpEnumeratePhysicalDeviceGroups)(vkinstance, &count, group_properties.data()); if (result != VK_SUCCESS) {