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.
Simon Ser 2 years ago
parent ed018a3ee2
commit 30769723c1

@ -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;

Loading…
Cancel
Save