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 a4f1b04216023ff0f4cd89328b59ee6890248130 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 f62d509..6752ca4 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);