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.
This commit is contained in:
Simon Ser 2022-09-07 12:29:59 +02:00
parent ed018a3ee2
commit 30769723c1

View file

@ -261,7 +261,7 @@ void vulkan_format_props_query(struct wlr_vk_device *dev,
} }
// non-dmabuf texture properties // non-dmabuf texture properties
if (fmtp.formatProperties.optimalTilingFeatures & tex_features) { if ((fmtp.formatProperties.optimalTilingFeatures & tex_features) == tex_features) {
fmti.pNext = NULL; fmti.pNext = NULL;
ifmtp.pNext = NULL; ifmtp.pNext = NULL;
fmti.tiling = VK_IMAGE_TILING_OPTIMAL; fmti.tiling = VK_IMAGE_TILING_OPTIMAL;