Merge "Allow VK_API_VERSION_1_2 in VkJson" am: 3ce4a1b9a2

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1637597

Change-Id: Ib808aa5bcdd66d493eefc69cff1b5a9161b8886c
This commit is contained in:
Jason Macnak 2021-03-16 20:51:46 +00:00 committed by Automerger Merge Worker
commit 7cc33770c0

View file

@ -842,6 +842,8 @@ inline bool Iterate(Visitor* visitor, VkJsonDevice* device) {
bool ret = true;
switch (device->properties.apiVersion ^
VK_VERSION_PATCH(device->properties.apiVersion)) {
case VK_API_VERSION_1_2:
FALLTHROUGH_INTENDED;
case VK_API_VERSION_1_1:
ret &=
visitor->Visit("subgroupProperties", &device->subgroup_properties) &&
@ -896,6 +898,8 @@ template <typename Visitor>
inline bool Iterate(Visitor* visitor, VkJsonInstance* instance) {
bool ret = true;
switch (instance->api_version ^ VK_VERSION_PATCH(instance->api_version)) {
case VK_API_VERSION_1_2:
FALLTHROUGH_INTENDED;
case VK_API_VERSION_1_1:
ret &= visitor->Visit("deviceGroups", &instance->device_groups);
FALLTHROUGH_INTENDED;