Skip to content

Commit 56fb276

Browse files
Rodrigo Siqueiraalexdeucher
authored andcommitted
drm/amd/display: Adjust cursor position
[why & how] When the commit 9d84c7e ("drm/amd/display: Correct cursor position on horizontal mirror") was introduced, it used the wrong calculation for the position copy for X. This commit uses the correct calculation for that based on the original patch. Fixes: 9d84c7e ("drm/amd/display: Correct cursor position on horizontal mirror") Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Acked-by: Wayne Lin <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Tom Chung <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 8f9b23a) Cc: [email protected]
1 parent 737222c commit 56fb276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3682,7 +3682,7 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx)
36823682
(int)hubp->curs_attr.width || pos_cpy.x
36833683
<= (int)hubp->curs_attr.width +
36843684
pipe_ctx->plane_state->src_rect.x) {
3685-
pos_cpy.x = 2 * viewport_width - temp_x;
3685+
pos_cpy.x = temp_x + viewport_width;
36863686
}
36873687
}
36883688
} else {

0 commit comments

Comments
 (0)