Skip to content

Commit

Permalink
drm/amd/display: Fix check for stream and plane
Browse files Browse the repository at this point in the history
[WHY]
Function wasn't returning false when it had a no stream

[HOW]
Made it return false when it had no stream.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Ethan Wellenreiter <Ethan.Wellenreiter@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Ethan Wellenreiter authored and Alex Deucher committed Aug 29, 2022
1 parent e0b859c commit 93844fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ bool dcn32_all_pipes_have_stream_and_plane(struct dc *dc,
struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i];

if (!pipe->stream)
continue;
return false;

if (!pipe->plane_state)
return false;
Expand Down

0 comments on commit 93844fe

Please sign in to comment.