From: Andrey Grodzovsky Date: Wed, 22 Feb 2017 19:23:51 +0000 (-0500) Subject: drm/amd/display: Set cursor pitch to cursor width (in pixels). X-Git-Tag: v5.15~9960^2~23^2~624 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0702a01f97ec24b20bf20bf6f36250de08bcc8cb;p=platform%2Fkernel%2Flinux-starfive.git drm/amd/display: Set cursor pitch to cursor width (in pixels). Signed-off-by: Andrey Grodzovsky Reviewed-by: Jordan Lazare Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- 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 19c92ae..ee9239a 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;