lima: don't disable tiling if there's linear modifier in list
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 3 Mar 2020 05:42:48 +0000 (21:42 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 09:43:18 +0000 (09:43 +0000)
Instead we should disable it if tiling modifier is not here and we
already do that.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4029>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4029>

src/gallium/drivers/lima/lima_resource.c

index 92e3e6391e39b92768412fefd98d95c6b878a279..2cb4cde718e41e0f4f4ed417086a07d197a96400 100644 (file)
@@ -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))