color-representation: add support for identity+full

This commit is contained in:
Steve Williams 2026-01-31 15:11:14 +04:00 committed by Simon Ser
parent 439985fe95
commit bb78861ca9
3 changed files with 15 additions and 5 deletions

View file

@ -2039,8 +2039,8 @@ struct wlr_vk_pipeline_layout *get_or_create_pipeline_layout(
};
sampler_create_info.pNext = &conversion_info;
} else {
assert(key->ycbcr.encoding == WLR_COLOR_ENCODING_NONE);
assert(key->ycbcr.range == WLR_COLOR_RANGE_NONE);
assert(key->ycbcr.encoding == WLR_COLOR_ENCODING_NONE || key->ycbcr.encoding == WLR_COLOR_ENCODING_IDENTITY);
assert(key->ycbcr.range == WLR_COLOR_RANGE_NONE || key->ycbcr.range == WLR_COLOR_RANGE_FULL);
}
res = vkCreateSampler(renderer->dev->dev, &sampler_create_info, NULL, &pipeline_layout->sampler);