Fix #155467: Artifacts Wayland + NVIDIA 595

There is an obsolete swapchain configuration being checked.
This configuration was used 2 years ago when wayland color management
wasn’t mature. Nowadays this configuration is not being used until
the latest NVIDIA driver started to use it again. This made some bugs
appear as incorrect code paths is being selected to copy framebuffer
to the swapchain.

Pull Request: https://projects.blender.org/blender/blender/pulls/156741
This commit is contained in:
Jeroen Bakker 2026-04-02 10:25:43 +02:00 • committed by Thomas Dinges
parent 56c1868807
commit d910d3dc33

View file

@ -1165,7 +1165,6 @@ static bool selectSurfaceFormat(const VkPhysicalDevice physical_device,
array<pair<VkColorSpaceKHR, VkFormat>, 4> selection_order = {
make_pair(VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT, VK_FORMAT_R16G16B16A16_SFLOAT),
make_pair(VK_COLOR_SPACE_SRGB_NONLINEAR_KHR, VK_FORMAT_R16G16B16A16_SFLOAT),
make_pair(VK_COLOR_SPACE_SRGB_NONLINEAR_KHR, VK_FORMAT_R8G8B8A8_UNORM),
make_pair(VK_COLOR_SPACE_SRGB_NONLINEAR_KHR, VK_FORMAT_B8G8R8A8_UNORM),
};