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

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

Merge "In VuklanManager make sure we have a valid semaphore context before...

Merge "In VuklanManager make sure we have a valid semaphore context before destroying it." into sc-dev am: f560a753

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

Change-Id: I34b39a04a91134f15762472fa38d0fc011b602dd
parents 6591fca0 f560a753
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -579,7 +579,9 @@ void VulkanManager::swapBuffers(VulkanSurface* surface, const SkRect& dirtyRect)
        std::lock_guard<std::mutex> lock(mGraphicsQueueMutex);
        mQueueWaitIdle(mGraphicsQueue);
    }
    if (mDestroySemaphoreContext) {
        destroy_semaphore(mDestroySemaphoreContext);
    }

    surface->presentCurrentBuffer(dirtyRect, fenceFd);
    mSwapSemaphore = VK_NULL_HANDLE;