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

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
...@@ -725,8 +725,8 @@ void hubp401_cursor_set_position( ...@@ -725,8 +725,8 @@ void hubp401_cursor_set_position(
CURSOR_ENABLE, cur_en); CURSOR_ENABLE, cur_en);
REG_SET_2(CURSOR_POSITION, 0, REG_SET_2(CURSOR_POSITION, 0,
CURSOR_X_POSITION, pos->x, CURSOR_X_POSITION, x_pos,
CURSOR_Y_POSITION, pos->y); CURSOR_Y_POSITION, y_pos);
REG_SET_2(CURSOR_HOT_SPOT, 0, REG_SET_2(CURSOR_HOT_SPOT, 0,
CURSOR_HOT_SPOT_X, pos->x_hotspot, CURSOR_HOT_SPOT_X, pos->x_hotspot,
......
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