[PATCH 06/20] drm/amd/display: Let updates with no scaling changes be fast

sunpeng.li at amd.com sunpeng.li at amd.com
Tue Jan 22 18:28:52 UTC 2019

From: David Francis <David.Francis at amd.com>

DC was assuming that any surface_update->scaling_info
meant the update was at least medium.  However, if nothing
has changed there is no scaling to program, so there is
no problem with the update being fast

If every update flag is not set, the update is fast

Signed-off-by: David Francis <David.Francis at amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland at amd.com>
Acked-by: Leo Li <sunpeng.li at amd.com>
Acked-by: Nicholas Kazlauskas <Nicholas.Kazlauskas at amd.com>
 drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 5670284..1dabafc 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -1240,7 +1240,7 @@ static enum surface_update_type get_plane_info_update_type(const struct dc_surfa
 			|| update_flags->bits.output_tf_change)
+	return update_flags->raw ? UPDATE_TYPE_MED : UPDATE_TYPE_FAST;
 static enum surface_update_type get_scaling_info_update_type(

More information about the amd-gfx mailing list