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

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

Merge "swapchain: Eliminate silly difference with AOSP" into tm-dev am: 0af0bba3

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

Change-Id: I4f9a0a619f83b549901202338960a24ed9a92527
parents 35c15e44 0af0bba3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -719,6 +719,8 @@ VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev,

    bool wide_color_support = false;
    uint64_t consumer_usage = 0;
    bool swapchain_ext =
        instance_data.hook_extensions.test(ProcHook::EXT_swapchain_colorspace);
    if (surface_handle == VK_NULL_HANDLE) {
        ProcHook::Extension surfaceless = ProcHook::GOOGLE_surfaceless_query;
        bool surfaceless_enabled =
@@ -746,9 +748,7 @@ VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev,

        consumer_usage = surface.consumer_usage;
    }
    wide_color_support =
        wide_color_support &&
        instance_data.hook_extensions.test(ProcHook::EXT_swapchain_colorspace);
    wide_color_support = wide_color_support && swapchain_ext;

    AHardwareBuffer_Desc desc = {};
    desc.width = 1;