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

Commit ea783c31 authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher
Browse files

drm/amd/display: Cache cursor position.



When programming cursor position after front end programmed,
if position is already set previously, it doesn't make sense
to program position with all 0.
Cache position and use the parameter after front end programming.

Signed-off-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 457fbe76
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -301,6 +301,8 @@ bool dc_stream_set_cursor_position(


	}
	}


	stream->cursor_position = *position;

	return true;
	return true;
}
}


+1 −0
Original line number Original line Diff line number Diff line
@@ -86,6 +86,7 @@ struct dc_stream_state {
	struct dc_stream_status status;
	struct dc_stream_status status;


	struct dc_cursor_attributes cursor_attributes;
	struct dc_cursor_attributes cursor_attributes;
	struct dc_cursor_position cursor_position;


	/* from stream struct */
	/* from stream struct */
	struct kref refcount;
	struct kref refcount;