aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0382-drm-amd-display-Disable-cursor-on-video-surface.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0382-drm-amd-display-Disable-cursor-on-video-surface.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0382-drm-amd-display-Disable-cursor-on-video-surface.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0382-drm-amd-display-Disable-cursor-on-video-surface.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0382-drm-amd-display-Disable-cursor-on-video-surface.patch
new file mode 100644
index 00000000..b8f7b5f0
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0382-drm-amd-display-Disable-cursor-on-video-surface.patch
@@ -0,0 +1,31 @@
+From df59a44e2514a69fcdf7c7f7ebcfc20870ff9279 Mon Sep 17 00:00:00 2001
+From: Yongqiang Sun <yongqiang.sun@amd.com>
+Date: Fri, 28 Apr 2017 09:56:08 -0400
+Subject: [PATCH 0382/4131] drm/amd/display: Disable cursor on video surface.
+
+Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
+index 99b6a16..4ba446d 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
+@@ -250,6 +250,10 @@ bool dc_stream_set_cursor_position(
+ !pipe_ctx->ipp || !pipe_ctx->surface)
+ continue;
+
++ if (pipe_ctx->surface->public.address.type
++ == PLN_ADDR_TYPE_VIDEO_PROGRESSIVE)
++ pos_cpy.enable = false;
++
+ if (pipe_ctx->top_pipe && pipe_ctx->surface != pipe_ctx->top_pipe->surface)
+ pos_cpy.enable = false;
+
+--
+2.7.4
+