diff options
author | Vasily Khoruzhick <[email protected]> | 2020-03-02 21:42:48 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-03 09:43:18 +0000 |
commit | 5d713fb66e71bec3d4c9a6324fd0b6b52040ecb2 (patch) | |
tree | dc8aed0b1dd40de4b67161695bd9e43018128da0 /src/gallium | |
parent | 46a8cab58bc8fa897c66831b17614da4e9a36706 (diff) |
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 <[email protected]>
Signed-off-by: Vasily Khoruzhick <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4029>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4029>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/lima/lima_resource.c | 3 |
1 files changed, 0 insertions, 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)) |