From 30769723c1fb21761acaa4ca4e167de0aaaed891 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 7 Sep 2022 12:29:59 +0200 Subject: [PATCH] render/vulkan: fix format features check for shm textures We were checking whether any of the features was supported. We need to check if all of them are. This makes the check consistent with query_modifier_support() above. --- render/vulkan/pixel_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/vulkan/pixel_format.c b/render/vulkan/pixel_format.c index b4c40070..a152f467 100644 --- a/render/vulkan/pixel_format.c +++ b/render/vulkan/pixel_format.c @@ -261,7 +261,7 @@ void vulkan_format_props_query(struct wlr_vk_device *dev, } // non-dmabuf texture properties - if (fmtp.formatProperties.optimalTilingFeatures & tex_features) { + if ((fmtp.formatProperties.optimalTilingFeatures & tex_features) == tex_features) { fmti.pNext = NULL; ifmtp.pNext = NULL; fmti.tiling = VK_IMAGE_TILING_OPTIMAL;