drm/radeon: Use cursor_set2 hook for enabling / disabling the HW cursor
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 18 Nov 2014 09:00:08 +0000 (18:00 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Nov 2014 16:11:41 +0000 (11:11 -0500)
commit78b1a6010b46a69bcd47b723a80f92693f26d17b
treebe63de0ed5b1fe8447f683a5d02741d377b07b35
parentcc5ac1ca79b4976ed3a779d7ea157f078207b56b
drm/radeon: Use cursor_set2 hook for enabling / disabling the HW cursor

The cursor_set2 hook provides the cursor hotspot position within the
cursor image. When the hotspot position changes, we can adjust the cursor
position such that the hotspot doesn't move on the screen. This prevents
the cursor from appearing to intermittently jump around on the screen
when the position of the hotspot within the cursor image changes.

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