Commit e73c1efc authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

drm/amd/display: Use stream_enc to get head pipe.

Signed-off-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 745cc746
...@@ -887,7 +887,7 @@ struct pipe_ctx *resource_get_head_pipe_for_stream( ...@@ -887,7 +887,7 @@ struct pipe_ctx *resource_get_head_pipe_for_stream(
int i; int i;
for (i = 0; i < res_ctx->pool->pipe_count; i++) { for (i = 0; i < res_ctx->pool->pipe_count; i++) {
if (res_ctx->pipe_ctx[i].stream == stream && 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]; return &res_ctx->pipe_ctx[i];
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment