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

Commit 5b48206c authored by Shuangxi Xiang's avatar Shuangxi Xiang
Browse files

Modify the log information of semaphore in finishFrame

With the version change, the log information about the creation and acquisition failure of semaphore in the VulkanManager::finishFrame function is not updated. It is recommended to modify the log content to make the output log clearer.

Signed-off-by:
Shuangxi Xiang <xiangshuangxi@xiaomi.corp-partner.google.com>

Change-Id: I1cb5a73765d4f780dc004a68337a1bfbdf2565e8
parent 4109b479
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -674,7 +674,7 @@ VulkanManager::VkDrawResult VulkanManager::finishFrame(SkSurface* surface) {
        VkSemaphore semaphore;
        VkResult err = mCreateSemaphore(mDevice, &semaphoreInfo, nullptr, &semaphore);
        ALOGE_IF(VK_SUCCESS != err,
                 "VulkanManager::makeSwapSemaphore(): Failed to create semaphore");
                 "VulkanManager::finishFrame(): Failed to create semaphore");

        if (err == VK_SUCCESS) {
            sharedSemaphore = sp<SharedSemaphoreInfo>::make(mDestroySemaphore, mDevice, semaphore);
@@ -722,7 +722,7 @@ VulkanManager::VkDrawResult VulkanManager::finishFrame(SkSurface* surface) {

        int fenceFd = -1;
        VkResult err = mGetSemaphoreFdKHR(mDevice, &getFdInfo, &fenceFd);
        ALOGE_IF(VK_SUCCESS != err, "VulkanManager::swapBuffers(): Failed to get semaphore Fd");
        ALOGE_IF(VK_SUCCESS != err, "VulkanManager::finishFrame(): Failed to get semaphore Fd");
        drawResult.presentFence.reset(fenceFd);
    } else {
        ALOGE("VulkanManager::finishFrame(): Semaphore submission failed");