]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/dce10: Use cursor_set2 hook for enabling / disabling the HW cursor
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 24 Sep 2015 21:29:44 +0000 (17:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Oct 2015 20:16:25 +0000 (16:16 -0400)
commitef5db20c227985c9922b1da3376a0c60bdb8186c
tree52fe95f9c796daf5b87fbe5dba7a510e10b3c670
parent80445634b461aa7dfff26e48f07e43dbf6f3ab61
drm/amdgpu/dce10: 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:
aec28b4efcb10805d6e2e3ada120ee2bb64cf0df
c39cbd267757e3d9b6e4ae02a3f468c58e7bced1

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