diff options
author | Simon Ser <contact@emersion.fr> | 2022-09-07 12:29:59 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-09-07 15:46:38 +0200 |
commit | 30769723c1fb21761acaa4ca4e167de0aaaed891 (patch) | |
tree | d9c636642e4452fe158e3c78ad43f58898293fec | |
parent | ed018a3ee21b82e8bc3fac7ed60c1c1ee65f5fcd (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.c | 2 |
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; |