aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0295-drm-amd-display-Set-cursor-pitch-to-cursor-width-in-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0295-drm-amd-display-Set-cursor-pitch-to-cursor-width-in-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0295-drm-amd-display-Set-cursor-pitch-to-cursor-width-in-.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0295-drm-amd-display-Set-cursor-pitch-to-cursor-width-in-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0295-drm-amd-display-Set-cursor-pitch-to-cursor-width-in-.patch
new file mode 100644
index 00000000..44da4b7b
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0295-drm-amd-display-Set-cursor-pitch-to-cursor-width-in-.patch
@@ -0,0 +1,30 @@
+From f27e484d26229beb79f9e55173b6dc298f3e047c Mon Sep 17 00:00:00 2001
+From: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
+Date: Wed, 22 Feb 2017 14:23:51 -0500
+Subject: [PATCH 0295/4131] drm/amd/display: Set cursor pitch to cursor width
+ (in pixels).
+
+Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
+Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
+index 90c1fbb..bf645fd 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
+@@ -96,6 +96,8 @@ static void dm_set_cursor(
+ attributes.rotation_angle = 0;
+ attributes.attribute_flags.value = 0;
+
++ attributes.pitch = attributes.width;
++
+ x = amdgpu_crtc->cursor_x;
+ y = amdgpu_crtc->cursor_y;
+
+--
+2.7.4
+