OSDN Git Service

drm/amd/display: do not treat clip_rect size change as a scaling change
authorWenjing Liu <wenjing.liu@amd.com>
Tue, 25 Jul 2023 23:26:55 +0000 (19:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Aug 2023 21:14:08 +0000 (17:14 -0400)
[why]
With previous ODM + MPO policy we will only allocate pipes when MPO plane
has intersection with current ODM slice. With this policy we have to indicate
scaling change when plane clip is updated in case plane clip change causes
MPO plane to go in or out current ODM slice.
With new ODM + MPO policy we allocate pipe independent from plane clip size
so we no longer treat it as a scaling change. There no need to do a full update
due to clip size change anymore.

Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 413258d..8504e6e 100644 (file)
@@ -2495,9 +2495,7 @@ static enum surface_update_type get_scaling_info_update_type(
        if (!u->scaling_info)
                return UPDATE_TYPE_FAST;
 
-       if (u->scaling_info->clip_rect.width != u->surface->clip_rect.width
-                       || u->scaling_info->clip_rect.height != u->surface->clip_rect.height
-                       || u->scaling_info->dst_rect.width != u->surface->dst_rect.width
+       if (u->scaling_info->dst_rect.width != u->surface->dst_rect.width
                        || u->scaling_info->dst_rect.height != u->surface->dst_rect.height
                        || u->scaling_info->scaling_quality.integer_scaling !=
                                u->surface->scaling_quality.integer_scaling