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

Commit 9912b092 authored by Yiwei Zhang's avatar Yiwei Zhang
Browse files

vulkan: remove redundant native_window_set_buffer_count call

NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS is not affected by the buffer count
set from the producer side.

Bug: 182299804
Test: dEQP-VK.wsi.android.swapchain.*
Change-Id: Ie919caadac552ab4847e2c9ac3d15c16f05133cb
parent 5dc18f28
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1095,13 +1095,6 @@ VkResult CreateSwapchainKHR(VkDevice device,
        return VK_ERROR_SURFACE_LOST_KHR;
    }

    err = native_window_set_buffer_count(window, 0);
    if (err != android::OK) {
        ALOGE("native_window_set_buffer_count(0) failed: %s (%d)",
              strerror(-err), err);
        return VK_ERROR_SURFACE_LOST_KHR;
    }

    int swap_interval =
        create_info->presentMode == VK_PRESENT_MODE_MAILBOX_KHR ? 0 : 1;
    err = window->setSwapInterval(window, swap_interval);