Commit dabb3979 authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

drm/amd/display: Fix MPO exit and cursor issue.

Signed-off-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 940c654e
......@@ -215,7 +215,7 @@ bool dc_stream_set_cursor_attributes(
bool dc_stream_set_cursor_position(
const struct dc_stream *dc_stream,
const struct dc_cursor_position *position)
struct dc_cursor_position *position)
{
int i;
struct core_stream *stream;
......@@ -251,6 +251,9 @@ bool dc_stream_set_cursor_position(
.h_scale_ratio = pipe_ctx->scl_data.ratios.horz,
};
if (pipe_ctx->top_pipe && pipe_ctx->surface != pipe_ctx->top_pipe->surface)
position->enable = false;
ipp->funcs->ipp_cursor_set_position(ipp, position, &param);
ret = true;
}
......
......@@ -744,7 +744,7 @@ bool dc_stream_set_cursor_attributes(
bool dc_stream_set_cursor_position(
const struct dc_stream *stream,
const struct dc_cursor_position *position);
struct dc_cursor_position *position);
/* Newer interfaces */
struct dc_cursor {
......
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