render/vulkan: Use BT.709 for YUV conversion

Change from BT.601 to BT.709 color encoding for YUV conversion in the
vulkan renderer.  This is to be consistent with the gles2 renderer as
well as the DRM scanout path.  The latter is important to avoid visible
color shifts when direct scanout is enabled/disabled.
This commit is contained in:
David Turner 2025-05-08 11:16:19 +01:00
parent ebf24c2bda
commit 37f48a200e

View file

@ -1956,7 +1956,7 @@ struct wlr_vk_pipeline_layout *get_or_create_pipeline_layout(
VkSamplerYcbcrConversionCreateInfo conversion_create_info = {
.sType = VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO,
.format = key->ycbcr_format->vk,
.ycbcrModel = VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601,
.ycbcrModel = VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709,
.ycbcrRange = VK_SAMPLER_YCBCR_RANGE_ITU_NARROW,
.xChromaOffset = VK_CHROMA_LOCATION_MIDPOINT,
.yChromaOffset = VK_CHROMA_LOCATION_MIDPOINT,