From a682fa6c21b9d80e8700fb049e61c8dce2b65fb8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 5 May 2023 17:49:31 +0200 Subject: render/vulkan: require support for linear filter for YCbCr YCBCR_CONVERSION_LINEAR_FILTER is not enough: this one only covers chromaFilter. For magFilter/minFilter we need FILTER_LINEAR as well. --- render/vulkan/pixel_format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/render/vulkan/pixel_format.c b/render/vulkan/pixel_format.c index 2239c9d5..01d69db3 100644 --- a/render/vulkan/pixel_format.c +++ b/render/vulkan/pixel_format.c @@ -193,6 +193,7 @@ static const VkFormatFeatureFlags dma_tex_features = static const VkFormatFeatureFlags dma_tex_ycbcr_features = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT | VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT | + VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT | VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT; static bool query_modifier_usage_support(struct wlr_vk_device *dev, VkFormat vk_format, -- cgit v1.2.3