Skip to content

Commit 612281d

Browse files
committed
Allow vkjson to report on 1.4 instances
Does not yet output any 1.4 capabilities, but allows the tool to at least work. Bug: b/370568136 Flag: NONE bugfix Change-Id: I969581e9472d8cfd789dd3e5f9b750e54c91c4df
1 parent 8f9e4e1 commit 612281d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vulkan/vkjson/vkjson.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,9 @@ inline bool Iterate(Visitor* visitor, VkJsonDevice* device) {
10501050
bool ret = true;
10511051
switch (device->properties.apiVersion ^
10521052
VK_API_VERSION_PATCH(device->properties.apiVersion)) {
1053+
case VK_API_VERSION_1_4:
1054+
// TODO: real 1.4 support here
1055+
FALLTHROUGH_INTENDED;
10531056
case VK_API_VERSION_1_3:
10541057
ret &= visitor->Visit("core13", &device->core13);
10551058
FALLTHROUGH_INTENDED;
@@ -1110,6 +1113,8 @@ template <typename Visitor>
11101113
inline bool Iterate(Visitor* visitor, VkJsonInstance* instance) {
11111114
bool ret = true;
11121115
switch (instance->api_version ^ VK_API_VERSION_PATCH(instance->api_version)) {
1116+
case VK_API_VERSION_1_4:
1117+
FALLTHROUGH_INTENDED;
11131118
case VK_API_VERSION_1_3:
11141119
FALLTHROUGH_INTENDED;
11151120
case VK_API_VERSION_1_2:

0 commit comments

Comments
 (0)