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: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Yongqiang Sun 2017-11-21 16:12:23 -05:00 committed by Alex Deucher
parent 457fbe76ec
commit ea783c31e2
2 changed files with 3 additions and 0 deletions

View File

@ -301,6 +301,8 @@ bool dc_stream_set_cursor_position(
}
stream->cursor_position = *position;
return true;
}

View File

@ -86,6 +86,7 @@ struct dc_stream_state {
struct dc_stream_status status;
struct dc_cursor_attributes cursor_attributes;
struct dc_cursor_position cursor_position;
/* from stream struct */
struct kref refcount;