]> git.karo-electronics.de Git - linux-beck.git/commit
drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 15 Feb 2017 02:28:45 +0000 (11:28 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Feb 2017 16:44:35 +0000 (17:44 +0100)
commit7499da90c0ccaabea9b2b71f3f9c5603585715db
treef93b8d5780569b5ff49418fd80ca3b2136e76d3b
parent19d2d869d00e37004e6c49ed0384167f701b3bdd
drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor

commit d74c67dd7800fc7aae381f272875c337f268806c upstream.

The crtc_h/vdisplay fields may not match the CRTC viewport dimensions
with special modes such as interlaced ones.

Fixes the HW cursor disappearing in the bottom half of the screen with
interlaced modes.

Fixes: 6b16cf7785a4 ("drm/radeon: Hide the HW cursor while it's out of bounds")
Reported-by: Ashutosh Kumar <ashutosh.kumar@amd.com>
Tested-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@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