From: Tony Cheng <[email protected]> plane update prior to stream enablement is there to recombine pipe in case we need free pipe for new display. need to pass in new state or we will just re-applyingwhat we already have
Change-Id: I688eced64db9ac785cd36a40603d158088f174f0 Signed-off-by: Tony Cheng <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> --- drivers/gpu/drm/amd/display/dc/core/dc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 82e6d33133ab..bb053cbd4db1 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -881,12 +881,14 @@ 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); - /* Combine planes if required, in case of pipe split disable */ + /* re-program planes for existing stream, in case we need to + * free up plane resource for later use + */ for (i = 0; i < dc->current_state->stream_count; i++) { dc->hwss.apply_ctx_for_surface( dc, dc->current_state->streams[i], dc->current_state->stream_status[i].plane_count, - dc->current_state); + context); /* use new pipe config in new context */ } /* Program hardware */ -- 2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
