From: Dmytro Laktyushkin <dmytro.laktyush...@amd.com>

Change-Id: Ifd533c0316333c4179cf7b8bf725eeba5a4c09b2
Signed-off-by: Dmytro Laktyushkin <dmytro.laktyush...@amd.com>
Reviewed-by: Tony Cheng <tony.ch...@amd.com>
Acked-by: Harry Wentland <harry.wentl...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 
b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index 24c1a0f5febe..877e2b6a7dd5 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -868,16 +868,10 @@ static void reset_front_end_for_pipe(
         */
        tree_cfg = &dc->current_context->res_ctx.mpc_tree[pipe_ctx->mpc_idx];
 
-       if (pipe_ctx->top_pipe == NULL)
-               dcn10_delete_mpc_tree(mpc, tree_cfg);
-       else {
-               if (dcn10_remove_dpp(mpc, tree_cfg, pipe_ctx->pipe_idx))
-                       pipe_ctx->top_pipe->bottom_pipe = NULL;
-               else {
-                       dm_logger_write(dc->ctx->logger, LOG_RESOURCE,
-                               "%s: failed to find dpp to be removed!\n",
-                               __func__);
-               }
+       if (!dcn10_remove_dpp(mpc, tree_cfg, pipe_ctx->pipe_idx)) {
+               dm_logger_write(dc->ctx->logger, LOG_RESOURCE,
+                       "%s: failed to find dpp to be removed!\n",
+                       __func__);
        }
 
        pipe_ctx->top_pipe = NULL;
-- 
2.11.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to