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>
This commit is contained in:
Andrey Grodzovsky 2017-02-22 14:23:51 -05:00 committed by Alex Deucher
parent ce75805e0a
commit 0702a01f97

View File

@ -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;