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

Commit 9b689fa2 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 4410151 from fabd2f5c to pi-release

Change-Id: Id3be392569c4bfae4193e5ff61553b2a1d6670db
parents f02593bb fabd2f5c
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -344,9 +344,14 @@ void DestroyInstance(VkInstance instance,
VkResult EnumeratePhysicalDevices(VkInstance instance,
                                  uint32_t* physical_device_count,
                                  VkPhysicalDevice* physical_devices) {
    if (physical_devices && *physical_device_count >= 1)
    if (!physical_devices)
        *physical_device_count = 1;
    else if (*physical_device_count == 0)
        return VK_INCOMPLETE;
    else {
        physical_devices[0] = &instance->physical_device;
        *physical_device_count = 1;
    }
    return VK_SUCCESS;
}