]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Dec 2016 23:08:30 +0000 (18:08 -0500)
commit4349bd775cc8fd75cb648e3a2036a690f497de5c
tree97e52cd1f493e49c0637b68903951aa27a922c97
parentdcab0fa64e300afa18f39cd98d05e0950f652adf
drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values

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>
drivers/gpu/drm/radeon/radeon_cursor.c