OSDN Git Service

drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 27 Oct 2016 06:37:44 +0000 (15:37 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:22:51 +0000 (11:22 +0100)
commitaf817b3fc6e50bfe2ad415cdf1468ffecf8b62d3
tree6d44520f796c7146b516162110536d286107b2db
parent9205be7fa6323a0a7d049cf434134d8e5b54047a
drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values

commit 4349bd775cc8fd75cb648e3a2036a690f497de5c upstream.

We were storing viewport relative coordinates for AVIVO/DCE display
engines. However, radeon_crtc_cursor_set2 and radeon_cursor_reset pass
radeon_crtc->cursor_x/y as the x/y parameters of
radeon_cursor_move_locked, which would break if the CRTC isn't located
at (0, 0).

Cc: stable@vger.kernel.org
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_cursor.c