Skip to content

Commit 8d43e39

Browse files
emersionalexdeucher
authored andcommitted
drm/amd/display: drop cursor position check in atomic test
get_cursor_position already handles the case where the cursor has negative off-screen coordinates by not setting dc_cursor_position.enabled. Signed-off-by: Simon Ser <[email protected]> Fixes: 626bf90 ("drm/amd/display: add basic atomic check for cursor plane") Cc: Alex Deucher <[email protected]> Cc: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ba02fd6 commit 8d43e39

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8136,13 +8136,6 @@ static int dm_update_plane_state(struct dc *dc,
81368136
return -EINVAL;
81378137
}
81388138

8139-
if (new_plane_state->crtc_x <= -new_acrtc->max_cursor_width ||
8140-
new_plane_state->crtc_y <= -new_acrtc->max_cursor_height) {
8141-
DRM_DEBUG_ATOMIC("Bad cursor position %d, %d\n",
8142-
new_plane_state->crtc_x, new_plane_state->crtc_y);
8143-
return -EINVAL;
8144-
}
8145-
81468139
return 0;
81478140
}
81488141

0 commit comments

Comments
 (0)