From 0cdb7f91b92c01f2f2197f041517975c31e814f1 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 26 Jun 2025 08:57:27 +0200 Subject: [PATCH] panfrost: Don't check for MTK_TILED when walking the native modifiers list MTK_TILED is not in the native_mods list, so drop the check we had in this loop. Signed-off-by: Boris Brezillon Reviewed-by: Lars-Ivar Hesselberg Simonsen Reviewed-by: Eric R. Smith Acked-by: Daniel Stone Part-of: --- src/gallium/drivers/panfrost/pan_screen.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index f45b048789c..f2dc2ef8be7 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -384,10 +384,6 @@ panfrost_walk_dmabuf_modifiers(struct pipe_screen *screen, if (drm_is_afrc(native_mods[i]) && !afrc) continue; - if (drm_is_mtk_tiled(native_mods[i]) && - !panfrost_format_supports_mtk_tiled(format)) - continue; - /* If the format is still YUV after lowering, the SW emulation might * involve plane aliasing which we can't do with U_TILED. */ if (util_format_is_yuv(format) &&