mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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:
parent
ebf24c2bda
commit
37f48a200e
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue