From 25beb683eacfa5f8534f1bd6fdbe51111d0545c7 Mon Sep 17 00:00:00 2001 From: Yongqiang Sun Date: Tue, 14 Mar 2017 16:41:50 -0400 Subject: [PATCH 0288/4131] drm/amd/display: Use stream_enc to get head pipe. Signed-off-by: Yongqiang Sun Acked-by: Harry Wentland Reviewed-by: Tony Cheng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index 6700d6b..9f624e8 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -887,7 +887,7 @@ struct pipe_ctx *resource_get_head_pipe_for_stream( int i; for (i = 0; i < res_ctx->pool->pipe_count; i++) { if (res_ctx->pipe_ctx[i].stream == stream && - !res_ctx->pipe_ctx[i].top_pipe) { + res_ctx->pipe_ctx[i].stream_enc) { return &res_ctx->pipe_ctx[i]; break; } -- 2.7.4