ソースを参照

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>
Andrey Grodzovsky 8 年 前
コミット
0702a01f97
1 ファイル変更2 行追加0 行削除
  1. 2 0
      drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c

+ 2 - 0
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;