Skip to content

Commit e1813be

Browse files
committed
Plumb vpa16 checking through to cmd gpu vkprofiles
Bug: b/365822403 b/365776049 b/370096306 b/370767995 b/382286666 Change-Id: Ib952b3e4dc14cd9e0374f3d43d7dbaf3c4329395 Flag: NONE test infra
1 parent 4489d6d commit e1813be

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

vulkan/vkprofiles/vkprofiles.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ std::string vkVpa15GetSupport() {
182182
VP_ANDROID_15_MINIMUMS_MIN_API_VERSION);
183183
}
184184

185+
std::string vkVpa16GetSupport() {
186+
VpProfileProperties profile{VP_ANDROID_16_MINIMUMS_NAME,
187+
VP_ANDROID_16_MINIMUMS_SPEC_VERSION};
188+
return vkProfileGetSupport(&profile,
189+
VP_ANDROID_16_MINIMUMS_MIN_API_VERSION);
190+
}
191+
185192
std::string vkProfiles() {
186193
return "{"
187194
"\"" + std::string(VP_ANDROID_BASELINE_2021_NAME) + "\": "
@@ -191,7 +198,9 @@ std::string vkProfiles() {
191198
"\"" + std::string(VP_ANDROID_BASELINE_2022_NAME) + "\": "
192199
"\"" + vkAbp2022GetSupport() + "\","
193200
"\"" + std::string(VP_ANDROID_15_MINIMUMS_NAME) + "\": "
194-
"\"" + vkVpa15GetSupport() + "\""
201+
"\"" + vkVpa15GetSupport() + "\","
202+
"\"" + std::string(VP_ANDROID_16_MINIMUMS_NAME) + "\": "
203+
"\"" + vkVpa16GetSupport() + "\""
195204
"}";
196205
}
197206

vulkan/vkprofiles/vkprofiles.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ std::string vkAbp2021GetSupport();
3232
std::string vkAbp2021GetSupportCpuOnly();
3333
std::string vkAbp2022GetSupport();
3434
std::string vkVpa15GetSupport();
35+
std::string vkVpa16GetSupport();
3536

3637
// Returns a json string that enumerates support for any of the Vulkan profiles
3738
// specified in the above functions

0 commit comments

Comments
 (0)