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

Commit cc3784bf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Advertise support for BT709 in the WSI"

parents caae5fde 737b5b49
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -736,7 +736,8 @@ VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev,
    // We must support R8G8B8A8
    // We must support R8G8B8A8
    std::vector<VkSurfaceFormatKHR> all_formats = {
    std::vector<VkSurfaceFormatKHR> all_formats = {
        {VK_FORMAT_R8G8B8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR},
        {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) {
    if (wide_color_support) {
        all_formats.emplace_back(VkSurfaceFormatKHR{
        all_formats.emplace_back(VkSurfaceFormatKHR{