]> git.baikalelectronics.ru Git - kernel.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)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Jul 2012 01:54:32 +0000 (21:54 -0400)
commit76cd1c82371e0ba19be1f4fd04e272198026c48a
tree6c40ca18ce2ff7b524d3e0cc95e90b4f442a6832
parent337009d9701a4e4bb4f9f69da7d6956b5e81d542
drm/radeon: Try harder to avoid HW cursor ending on a multiple of 128 columns.

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

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: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cursor.c