From: Yongqiang Sun Date: Tue, 14 Mar 2017 20:41:50 +0000 (-0400) Subject: drm/amd/display: Use stream_enc to get head pipe. X-Git-Tag: v4.15-rc1~56^2~23^2~631 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e73c1efca8c5fd4a53f6d725fc6ca18c65570d37;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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 6700d6b27a8a2..9f624e84f59b8 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; }