提交 457fbe76 编写于 作者: Y Yongqiang Sun 提交者: Alex Deucher

drm/amd/display: Program cursor regs after context swapped.

Cursor is abnormal after pipe_ctx is changed in context.
Cause: cursor attributes is programmed right after front end
programming, but it use old pipe_ctx to program which is not
updated yet.
Solution:
Program cursor regs after context swapped.
Signed-off-by: NYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <harry.wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 0c31a821
......@@ -1992,22 +1992,9 @@ static void dcn10_apply_ctx_for_surface(
}
}
if (num_planes > 0) {
if (num_planes > 0)
program_all_pipe_in_tree(dc, top_pipe_to_program, context);
/* TODO: this is a hack w/a for switching from mpo to pipe split */
if (stream->cursor_attributes.address.quad_part != 0) {
struct dc_cursor_position position = { 0 };
dc_stream_set_cursor_position(
(struct dc_stream_state *)stream,
&position);
dc_stream_set_cursor_attributes(
(struct dc_stream_state *)stream,
&stream->cursor_attributes);
}
}
tg->funcs->unlock(tg);
if (num_planes == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册