summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm
diff options
context:
space:
mode:
authorZeyu Fan <Zeyu.Fan@amd.com>2017-04-03 11:54:11 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:23:15 -0400
commit632550d71fcf78d495cfd1d321427e634b662f23 (patch)
tree50c428b961b2d02e3a81ec76883738c912562756 /drivers/gpu/drm/amd/display/amdgpu_dm
parent035e0fe5485fc1881a3c24eaac86832d804242e9 (diff)
downloadlinux-632550d71fcf78d495cfd1d321427e634b662f23.tar.bz2
drm/amd/display: Fix hotspot programming during set cursor position.
- Remove x,y hotspot from dc_cursor_attributes. Only program it through setPosition. Signed-off-by: Zeyu Fan <Zeyu.Fan@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Zeyu Fan <Zeyu.Fan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
index 4b0fc6b56969..58fda20f6b97 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
@@ -90,8 +90,6 @@ static void dm_set_cursor(
attributes.address.low_part = lower_32_bits(gpu_addr);
attributes.width = width;
attributes.height = height;
- attributes.x_hot = 0;
- attributes.y_hot = 0;
attributes.color_format = CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA;
attributes.rotation_angle = 0;
attributes.attribute_flags.value = 0;
@@ -118,7 +116,6 @@ static void dm_set_cursor(
position.x = x;
position.y = y;
- position.hot_spot_enable = true;
position.x_hotspot = xorigin;
position.y_hotspot = yorigin;
@@ -260,7 +257,6 @@ static int dm_crtc_cursor_set(
position.enable = false;
position.x = 0;
position.y = 0;
- position.hot_spot_enable = false;
if (amdgpu_crtc->stream) {
/*set cursor visible false*/
@@ -344,7 +340,6 @@ static int dm_crtc_cursor_move(struct drm_crtc *crtc,
position.x = x;
position.y = y;
- position.hot_spot_enable = true;
position.x_hotspot = xorigin;
position.y_hotspot = yorigin;