From 5279eb7dfcc1cefd20bd3fcf07d22daa91a91ac9 Mon Sep 17 00:00:00 2001 From: Caterina Shablia Date: Fri, 23 Jan 2026 20:30:07 +0000 Subject: [PATCH] panvk: let the mod handler handle DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED There are additional conditions that must be met before DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED can be used. These conditions are verified by the handler of this modifier, but not panvk_image_can_use_mod. Let's call the handler of this modifier so it can finally decide whether this modifier can be used. Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/vulkan/panvk_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/vulkan/panvk_image.c b/src/panfrost/vulkan/panvk_image.c index a343d65c487..dba28923161 100644 --- a/src/panfrost/vulkan/panvk_image.c +++ b/src/panfrost/vulkan/panvk_image.c @@ -270,8 +270,8 @@ panvk_image_can_use_mod(struct panvk_image *image, * sampled/storage image, frag_coord patching for color attachments). Let's * keep things simple for now and make all compressed images that * have VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT set linear. */ - return !(image->vk.create_flags & - VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT); + if (image->vk.create_flags & VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT) + return false; } /* Defer the rest of the checks to the mod handler. */