diff options
author | 2022-08-19 18:30:44 -0400 | |
---|---|---|
committer | 2022-08-30 17:09:01 -0400 | |
commit | d6f84bab48745ea68814d596eb476a9c11ce76ae (patch) | |
tree | a414ccfc427c23ab5c936c937f8cf1f39ae0653c | |
parent | drm/amd/display: Re-initialize viewport after pipe merge (diff) | |
download | wireguard-linux-d6f84bab48745ea68814d596eb476a9c11ce76ae.tar.xz wireguard-linux-d6f84bab48745ea68814d596eb476a9c11ce76ae.zip |
drm/amd/display: Fix check for stream and plane
[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>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c index 955f52e6064d..ab918fe38f6a 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c @@ -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; |