]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/radeon: Try harder to avoid HW cursor ending on a multiple of 128 columns.
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 17 Jul 2012 17:02:09 +0000 (19:02 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 Aug 2012 13:37:53 +0000 (14:37 +0100)
commit0bc80e0aca34d785bf3b4476a11e4aba668a6979
tree7ea83137b4a044e822c81be344d5abb027dbf9af
parenta6624e8b990f77bd4ee64f77c2b95c7df005f002
drm/radeon: Try harder to avoid HW cursor ending on a multiple of 128 columns.

commit f60ec4c7df043df81e62891ac45383d012afe0da upstream.

This could previously fail if either of the enabled displays was using a
horizontal resolution that is a multiple of 128, and only the leftmost column
of the cursor was (supposed to be) visible at the right edge of that display.

The solution is to move the cursor one pixel to the left in that case.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33183

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/radeon_cursor.c