drm/amdgpu/dce8: Use cursor_set2 hook for enabling / disabling the HW cursor
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Oct 2015 03:26:15 +0000 (23:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Oct 2015 20:16:32 +0000 (16:16 -0400)
commit77ed35b889e38775649ed985048cac8c134cd3a3
tree7a47db203be79e418b74c98155b1cf156c49d106
parentec9353dca9a02b429f31ac58ec7b55ee61757441
drm/amdgpu/dce8: 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.

Port of radeon commits:
78b1a6010b46a69bcd47b723a80f92693f26d17b
3feba08d79c32777a845c3c8a4ab93092bdf6f19

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c