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

Commit 7e36114e authored by Ian Elliott's avatar Ian Elliott
Browse files

swapchain: Do not return MAILBOX for VK_GOOGLE_surfaceless_query

Bug: 203826952
Test: Test with ANGLE EGLConfig-generation code
Change-Id: Ie487f25a6a1b05cf8ee63f71b14ad8b2e83c6aa1
parent 864034bf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -924,8 +924,7 @@ VkResult GetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice pdev,
        // VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR and
        // VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR.  We technically cannot
        // know if VK_PRESENT_MODE_SHARED_MAILBOX_KHR is supported without a
        // surface, and that cannot be relied upon.
        present_modes.push_back(VK_PRESENT_MODE_MAILBOX_KHR);
        // surface, and that cannot be relied upon.  Therefore, don't return it.
        present_modes.push_back(VK_PRESENT_MODE_FIFO_KHR);
    } else {
        ANativeWindow* window = SurfaceFromHandle(surface)->window.get();