aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1137-drm-amd-display-Let-updates-with-no-scaling-changes-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1137-drm-amd-display-Let-updates-with-no-scaling-changes-.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1137-drm-amd-display-Let-updates-with-no-scaling-changes-.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1137-drm-amd-display-Let-updates-with-no-scaling-changes-.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1137-drm-amd-display-Let-updates-with-no-scaling-changes-.patch
new file mode 100644
index 00000000..4100e7af
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1137-drm-amd-display-Let-updates-with-no-scaling-changes-.patch
@@ -0,0 +1,40 @@
+From 8d16edebdc6c5732834d432cf0cd93382550d180 Mon Sep 17 00:00:00 2001
+From: David Francis <David.Francis@amd.com>
+Date: Thu, 3 Jan 2019 14:38:06 -0500
+Subject: [PATCH 1137/2940] drm/amd/display: Let updates with no scaling
+ changes be fast
+
+[Why]
+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
+
+[How]
+If every update flag is not set, the update is fast
+
+Signed-off-by: David Francis <David.Francis@amd.com>
+Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+Acked-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@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 61e8603e47fd..aa84039b0522 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_TYPE_FULL;
+
+- return UPDATE_TYPE_MED;
++ return update_flags->raw ? UPDATE_TYPE_MED : UPDATE_TYPE_FAST;
+ }
+
+ static enum surface_update_type get_scaling_info_update_type(
+--
+2.17.1
+