Commit c7b3569b authored by Sung Lee's avatar Sung Lee Committed by Alex Deucher
Browse files

drm/amd/display: Fix Cursor Offset in Scaled Scenarios



[WHY]
Cursor position code had improper offsets in scaled modes.

[HOW]
Adjust cursor scaling to account for cursor offsets properly.

Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarSung Lee <sunglee@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6cc213b9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -725,8 +725,8 @@ void hubp401_cursor_set_position(
		CURSOR_ENABLE, cur_en);

	REG_SET_2(CURSOR_POSITION, 0,
		CURSOR_X_POSITION, pos->x,
		CURSOR_Y_POSITION, pos->y);
		CURSOR_X_POSITION, x_pos,
		CURSOR_Y_POSITION, y_pos);

	REG_SET_2(CURSOR_HOT_SPOT, 0,
		CURSOR_HOT_SPOT_X, pos->x_hotspot,