Commit 7198dbba authored by Michel Dänzer's avatar Michel Dänzer Committed by Sasha Levin

drm/radeon: Also call cursor_move_locked when the cursor size changes

[ Upstream commit dcab0fa6 ]

The cursor size also affects the register programming.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent 15a12fbb
...@@ -306,12 +306,11 @@ int radeon_crtc_cursor_set2(struct drm_crtc *crtc, ...@@ -306,12 +306,11 @@ int radeon_crtc_cursor_set2(struct drm_crtc *crtc,
return ret; return ret;
} }
radeon_crtc->cursor_width = width;
radeon_crtc->cursor_height = height;
radeon_lock_cursor(crtc, true); radeon_lock_cursor(crtc, true);
if (hot_x != radeon_crtc->cursor_hot_x || if (width != radeon_crtc->cursor_width ||
height != radeon_crtc->cursor_height ||
hot_x != radeon_crtc->cursor_hot_x ||
hot_y != radeon_crtc->cursor_hot_y) { hot_y != radeon_crtc->cursor_hot_y) {
int x, y; int x, y;
...@@ -320,6 +319,8 @@ int radeon_crtc_cursor_set2(struct drm_crtc *crtc, ...@@ -320,6 +319,8 @@ int radeon_crtc_cursor_set2(struct drm_crtc *crtc,
radeon_cursor_move_locked(crtc, x, y); radeon_cursor_move_locked(crtc, x, y);
radeon_crtc->cursor_width = width;
radeon_crtc->cursor_height = height;
radeon_crtc->cursor_hot_x = hot_x; radeon_crtc->cursor_hot_x = hot_x;
radeon_crtc->cursor_hot_y = hot_y; radeon_crtc->cursor_hot_y = hot_y;
} }
......
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