Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1813be3 authored by Chris Forbes's avatar Chris Forbes
Browse files

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
parent 4489d6da
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -182,6 +182,13 @@ std::string vkVpa15GetSupport() {
                               VP_ANDROID_15_MINIMUMS_MIN_API_VERSION);
}

std::string vkVpa16GetSupport() {
    VpProfileProperties profile{VP_ANDROID_16_MINIMUMS_NAME,
                                VP_ANDROID_16_MINIMUMS_SPEC_VERSION};
    return vkProfileGetSupport(&profile,
                               VP_ANDROID_16_MINIMUMS_MIN_API_VERSION);
}

std::string vkProfiles() {
    return "{"
           "\"" + std::string(VP_ANDROID_BASELINE_2021_NAME) + "\": "
@@ -191,7 +198,9 @@ std::string vkProfiles() {
           "\"" + std::string(VP_ANDROID_BASELINE_2022_NAME) + "\": "
           "\"" + vkAbp2022GetSupport() + "\","
           "\"" + std::string(VP_ANDROID_15_MINIMUMS_NAME) + "\": "
           "\"" + vkVpa15GetSupport() + "\""
           "\"" + vkVpa15GetSupport() + "\","
           "\"" + std::string(VP_ANDROID_16_MINIMUMS_NAME) + "\": "
           "\"" + vkVpa16GetSupport() + "\""
           "}";
}

+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ std::string vkAbp2021GetSupport();
std::string vkAbp2021GetSupportCpuOnly();
std::string vkAbp2022GetSupport();
std::string vkVpa15GetSupport();
std::string vkVpa16GetSupport();

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