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

Commit f254573d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "swapchain: always return a signle image for shared presentation mode"...

Merge "swapchain: always return a signle image for shared presentation mode" into sc-qpr1-dev am: 1f251f13 am: 78540c2c

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

Change-Id: Iefe53bf0823ecf4140c8a1bc22b7846a90d83421
parents 23f412db 78540c2c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1231,6 +1231,12 @@ VkResult CreateSwapchainKHR(VkDevice device,
        return VK_ERROR_SURFACE_LOST_KHR;
    }

    // In shared mode the num_images must be one regardless of how many
    // buffers were allocated for the buffer queue.
    if (swapchain_image_usage & VK_SWAPCHAIN_IMAGE_USAGE_SHARED_BIT_ANDROID) {
        num_images = 1;
    }

    int32_t legacy_usage = 0;
    if (dispatch.GetSwapchainGrallocUsage2ANDROID) {
        uint64_t consumer_usage, producer_usage;