aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-05-05 17:49:31 +0200
committerSimon Ser <contact@emersion.fr>2023-05-24 08:58:59 +0000
commita682fa6c21b9d80e8700fb049e61c8dce2b65fb8 (patch)
tree271e2369c4dd0d62dd608633e6d1ff029ad855e4
parent91d469d8c09bbe28d86d15f9039939f1a307714b (diff)
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.
-rw-r--r--render/vulkan/pixel_format.c1
1 files changed, 1 insertions, 0 deletions
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,