]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Revert "Fallback to SW cursor if SubVP + cursor too big"
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 11 Aug 2022 20:42:12 +0000 (16:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 18:26:59 +0000 (14:26 -0400)
This reverts commit 5487f1f9d25d7a480a7dfb4549552a2b52d0081a since
returning false in case of SubVP results in no cursor being visible on
desktop as there is no sw cursor fallback path on all platforms.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c

index f62d50901d92e8ea225d98575583481599c49bbc..6752ca44e6e0b3d9add05d4a0e3fecaefce32243 100644 (file)
@@ -328,11 +328,6 @@ bool dc_stream_set_cursor_attributes(
        }
 
        dc = stream->ctx->dc;
-
-       if (attributes->height * attributes->width * 4 > 16384)
-               if (stream->mall_stream_config.type == SUBVP_MAIN)
-                       return false;
-
        stream->cursor_attributes = *attributes;
 
        dc_z10_restore(dc);