Commit dcf6c145 authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher
Browse files

drm/amd/display: clean up mpc programing during fe reset

parent e7b1322e
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -868,17 +868,11 @@ 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 {
	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;
	pipe_ctx->bottom_pipe = NULL;