Commit 7d2638a6 authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

drm/amd/display: Set cursor position as per address.

In case of pipe split, cursor position should also be
programmed as per cursor address.
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 59c185ac
...@@ -2414,7 +2414,6 @@ static void program_all_pipe_in_tree( ...@@ -2414,7 +2414,6 @@ static void program_all_pipe_in_tree(
} }
if (pipe_ctx->plane_state != NULL) { if (pipe_ctx->plane_state != NULL) {
struct dc_cursor_position position = { 0 };
struct pipe_ctx *cur_pipe_ctx = struct pipe_ctx *cur_pipe_ctx =
&dc->current_state->res_ctx.pipe_ctx[pipe_ctx->pipe_idx]; &dc->current_state->res_ctx.pipe_ctx[pipe_ctx->pipe_idx];
...@@ -2434,11 +2433,13 @@ static void program_all_pipe_in_tree( ...@@ -2434,11 +2433,13 @@ static void program_all_pipe_in_tree(
update_dchubp_dpp(dc, pipe_ctx, context); update_dchubp_dpp(dc, pipe_ctx, context);
/* TODO: this is a hack w/a for switching from mpo to pipe split */ /* TODO: this is a hack w/a for switching from mpo to pipe split */
dc_stream_set_cursor_position(pipe_ctx->stream, &position); if (pipe_ctx->stream->cursor_attributes.address.quad_part != 0) {
struct dc_cursor_position position = { 0 };
if (pipe_ctx->stream->cursor_attributes.address.quad_part != 0) dc_stream_set_cursor_position(pipe_ctx->stream, &position);
dc_stream_set_cursor_attributes(pipe_ctx->stream, dc_stream_set_cursor_attributes(pipe_ctx->stream,
&pipe_ctx->stream->cursor_attributes); &pipe_ctx->stream->cursor_attributes);
}
if (cur_pipe_ctx->plane_state != pipe_ctx->plane_state) { if (cur_pipe_ctx->plane_state != pipe_ctx->plane_state) {
dc->hwss.set_input_transfer_func( dc->hwss.set_input_transfer_func(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment