]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerLuis Henriques <luis.henriques@canonical.com>
Fri, 20 Jan 2017 11:27:09 +0000 (11:27 +0000)
commit761fa3ff4ab72e66cf96d49557255da71444b376
tree6aef33399b8ec6a171161825e1456d5c740430f3
parentf0d214b76cf8fd3ae23ea664cfe99c086a568ca9
drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values

BugLink: http://bugs.launchpad.net/bugs/1655969
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/gpu/drm/radeon/radeon_cursor.c