drm/amd/display: Disable cursor on video surface.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Yongqiang Sun 2017-04-28 09:56:08 -04:00 committed by Alex Deucher
parent 9e594f4c3f
commit cf4cde2b0b
1 changed files with 4 additions and 0 deletions

View File

@ -250,6 +250,10 @@ bool dc_stream_set_cursor_position(
!pipe_ctx->ipp || !pipe_ctx->surface)
continue;
if (pipe_ctx->surface->public.address.type
== PLN_ADDR_TYPE_VIDEO_PROGRESSIVE)
pos_cpy.enable = false;
if (pipe_ctx->top_pipe && pipe_ctx->surface != pipe_ctx->top_pipe->surface)
pos_cpy.enable = false;