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 <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>
This commit is contained in:
committed by
Marge Bot
parent
46a8cab58b
commit
5d713fb66e
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user