[PATCH 14/17] drm/amd/display: Set cursor pitch to cursor width (in pixels).
Harry Wentland
harry.wentland at amd.com
Wed Mar 22 17:05:01 UTC 2017
From: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com>
Change-Id: I2e37b03c38c07d448169ed534784ce38b2541d74
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com>
Reviewed-by: Jordan Lazare <Jordan.Lazare at amd.com>
Reviewed-by: Harry Wentland <harry.wentland at 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 d2e2485bdf7a..929a4c8ea62d 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
@@ -97,6 +97,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.11.0
More information about the amd-gfx
mailing list