aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_resource.c11
1 files changed, 3 insertions, 8 deletions
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 f798fc28fb2a..3830e6ce1355 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -1305,18 +1305,13 @@ struct pipe_ctx *dc_res_get_odm_bottom_pipe(struct pipe_ctx *pipe_ctx)
1305bool dc_res_is_odm_head_pipe(struct pipe_ctx *pipe_ctx) 1305bool dc_res_is_odm_head_pipe(struct pipe_ctx *pipe_ctx)
1306{ 1306{
1307 struct pipe_ctx *top_pipe = pipe_ctx->top_pipe; 1307 struct pipe_ctx *top_pipe = pipe_ctx->top_pipe;
1308 bool result = false;
1309 1308
1309 if (!top_pipe)
1310 return false;
1310 if (top_pipe && top_pipe->stream_res.opp == pipe_ctx->stream_res.opp) 1311 if (top_pipe && top_pipe->stream_res.opp == pipe_ctx->stream_res.opp)
1311 return false; 1312 return false;
1312 1313
1313 while (top_pipe) { 1314 return true;
1314 if (!top_pipe->top_pipe && top_pipe->stream_res.opp != pipe_ctx->stream_res.opp)
1315 result = true;
1316 top_pipe = top_pipe->top_pipe;
1317 }
1318
1319 return result;
1320} 1315}
1321 1316
1322bool dc_remove_plane_from_context( 1317bool dc_remove_plane_from_context(