aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-09-07 12:29:59 +0200
committerSimon Ser <contact@emersion.fr>2022-09-07 15:46:38 +0200
commit30769723c1fb21761acaa4ca4e167de0aaaed891 (patch)
treed9c636642e4452fe158e3c78ad43f58898293fec
parented018a3ee21b82e8bc3fac7ed60c1c1ee65f5fcd (diff)
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.
-rw-r--r--render/vulkan/pixel_format.c2
1 files changed, 1 insertions, 1 deletions
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;