Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a1bd170 authored by Simon Ser's avatar Simon Ser Committed by Greg Kroah-Hartman
Browse files

drm/amd/display: drop cursor position check in atomic test



[ Upstream commit f7d5991b92ff824798693ddf231cf814c9d5a88b ]

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: default avatarSimon Ser <contact@emersion.fr>
Fixes: 626bf90fe03f ("drm/amd/display: add basic atomic check for cursor plane")
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b5d326a7
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -6951,13 +6951,6 @@ static int dm_update_plane_state(struct dc *dc,
			return -EINVAL;
			return -EINVAL;
		}
		}


		if (new_plane_state->crtc_x <= -new_acrtc->max_cursor_width ||
			new_plane_state->crtc_y <= -new_acrtc->max_cursor_height) {
			DRM_DEBUG_ATOMIC("Bad cursor position %d, %d\n",
							 new_plane_state->crtc_x, new_plane_state->crtc_y);
			return -EINVAL;
		}

		return 0;
		return 0;
	}
	}