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

Commit e3066e97 authored by Chris Forbes's avatar Chris Forbes
Browse files

vulkan: Disable shared present modes for now

This extension is not yet ratified, and we shouldn't really be
unconditionally exposing the new present modes anyway.

Test: build
Change-Id: I0a9631a5079648c0d8981f07a9f704b7f8758ce3
parent 2e95c3fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -564,8 +564,8 @@ VkResult GetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice /*pdev*/,
    const VkPresentModeKHR kModes[] = {
        VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_FIFO_KHR,
        // TODO(chrisforbes): should only expose this if the driver can.
        VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR,
        VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR,
        // VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR,
        // VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR,
    };
    const uint32_t kNumModes = sizeof(kModes) / sizeof(kModes[0]);