Commit 0702a01f authored by Andrey Grodzovsky's avatar Andrey Grodzovsky Committed by Alex Deucher

drm/amd/display: Set cursor pitch to cursor width (in pixels).

Signed-off-by: default avatarAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: default avatarJordan Lazare <Jordan.Lazare@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ce75805e
...@@ -96,6 +96,8 @@ static void dm_set_cursor( ...@@ -96,6 +96,8 @@ static void dm_set_cursor(
attributes.rotation_angle = 0; attributes.rotation_angle = 0;
attributes.attribute_flags.value = 0; attributes.attribute_flags.value = 0;
attributes.pitch = attributes.width;
x = amdgpu_crtc->cursor_x; x = amdgpu_crtc->cursor_x;
y = amdgpu_crtc->cursor_y; y = amdgpu_crtc->cursor_y;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment