From 5d713fb66e71bec3d4c9a6324fd0b6b52040ecb2 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Mon, 2 Mar 2020 21:42:48 -0800 Subject: [PATCH] lima: don't disable tiling if there's linear modifier in list Instead we should disable it if tiling modifier is not here and we already do that. Reviewed-by: Daniel Stone Signed-off-by: Vasily Khoruzhick Tested-by: Marge Bot Part-of: --- src/gallium/drivers/lima/lima_resource.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/lima/lima_resource.c b/src/gallium/drivers/lima/lima_resource.c index 92e3e6391e3..2cb4cde718e 100644 --- a/src/gallium/drivers/lima/lima_resource.c +++ b/src/gallium/drivers/lima/lima_resource.c @@ -196,9 +196,6 @@ _lima_resource_create_with_modifiers(struct pipe_screen *pscreen, if (!has_user_modifiers && (templat->bind & PIPE_BIND_SHARED)) should_tile = false; - if (drm_find_modifier(DRM_FORMAT_MOD_LINEAR, modifiers, count)) - should_tile = false; - if (has_user_modifiers && !drm_find_modifier(DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED, modifiers, count)) -- 2.30.2