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

Commit 061fc6a2 authored by Steve Pfetsch's avatar Steve Pfetsch Committed by Android (Google) Code Review
Browse files

Merge "Extend hack to new driver version"

parents ca6c4370 fc00a1d4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -804,7 +804,8 @@ VkResult CreateSwapchainKHR(VkDevice device,
    int gralloc_usage = 0;
    if (dispatch.GetSwapchainGrallocUsage2ANDROID) {
        uint64_t consumer_usage, producer_usage;
        if (GetData(device).driver_version == 256587285) {
        uint32_t driver_version = GetData(device).driver_version;
        if (driver_version == 256587285 || driver_version == 96011958) {
            // HACK workaround for loader/driver mismatch during transition to
            // vkGetSwapchainGrallocUsage2ANDROID.
            typedef VkResult(VKAPI_PTR *