Browse Source

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>
Yongqiang Sun 8 years ago
parent
commit
cf4cde2b0b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      drivers/gpu/drm/amd/display/dc/core/dc_stream.c

+ 4 - 0
drivers/gpu/drm/amd/display/dc/core/dc_stream.c

@@ -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;