From: Yongqiang Sun <yongqiang.sun@xxxxxxx> Change-Id: I19bf7861e102d836cd9adcc17b3b422b0a3d7a74 Signed-off-by: Yongqiang Sun <yongqiang.sun at amd.com> Acked-by: Harry Wentland <Harry.Wentland at amd.com> Reviewed-by: Tony Cheng <Tony.Cheng at amd.com> --- 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 6700d6b27a8a..9f624e84f59b 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.11.0