drm/amd/display: Set cursor pitch to cursor width (in pixels).
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Wed, 22 Feb 2017 19:23:51 +0000 (14:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:20:36 +0000 (17:20 -0400)
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

index 19c92ae..ee9239a 100644 (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;