Skip to content

Commit f7d5991

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]> Cc: [email protected]
1 parent 7d9ff5e commit f7d5991

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
@@ -7880,13 +7880,6 @@ static int dm_update_plane_state(struct dc *dc,
78807880
return -EINVAL;
78817881
}
78827882

7883-
if (new_plane_state->crtc_x <= -new_acrtc->max_cursor_width ||
7884-
new_plane_state->crtc_y <= -new_acrtc->max_cursor_height) {
7885-
DRM_DEBUG_ATOMIC("Bad cursor position %d, %d\n",
7886-
new_plane_state->crtc_x, new_plane_state->crtc_y);
7887-
return -EINVAL;
7888-
}
7889-
78907883
return 0;
78917884
}
78927885

0 commit comments

Comments
 (0)