drm/amd/display: Disable cursor on video surface.
authorYongqiang Sun <yongqiang.sun@amd.com>
Fri, 28 Apr 2017 13:56:08 +0000 (09:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:06:44 +0000 (18:06 -0400)
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>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c

index 99b6a1695f261125cf0f0f2a2382b3dde6279812..4ba446de4d0005a7ed4eca46bed71ba75219d1e9 100644 (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;