From: Leo (Sunpeng) Li Date: Tue, 7 Nov 2017 18:21:02 +0000 (-0500) Subject: drm/amd/display: Remove dangling planes on dc commit state X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4faf6eddfbebba1cdc4653484b7a8c8f28bd3bff;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Remove dangling planes on dc commit state When disabling pipe splitting, we need to make sure we disable both planes used. This should be done for Linux as well. Signed-off-by: Leo (Sunpeng) Li Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index e0f13d79911d..96267b9b99d5 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -880,8 +880,6 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c if (!dcb->funcs->is_accelerated_mode(dcb)) dc->hwss.enable_accelerated_mode(dc); - - for (i = 0; i < context->stream_count; i++) { const struct dc_sink *sink = context->streams[i]->sink;