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

Commit 737b5b49 authored by Trevor David Black's avatar Trevor David Black
Browse files

Advertise support for BT709 in the WSI

Bug: 203533233
Test: build
Change-Id: Ie858995e7d5ef7be481f275450372bd319746e18
parent 567be130
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -736,7 +736,8 @@ VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev,
    // We must support R8G8B8A8
    std::vector<VkSurfaceFormatKHR> all_formats = {
        {VK_FORMAT_R8G8B8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR},
        {VK_FORMAT_R8G8B8A8_SRGB, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR}};
        {VK_FORMAT_R8G8B8A8_SRGB, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR},
        {VK_FORMAT_R8G8B8A8_UNORM, VK_COLOR_SPACE_BT709_LINEAR_EXT}};

    if (wide_color_support) {
        all_formats.emplace_back(VkSurfaceFormatKHR{