From adcfaf6fd00ac35002ff955f6929d3b5129542f7 Mon Sep 17 00:00:00 2001 From: Hersen Wu Date: Wed, 6 Apr 2016 14:24:16 -0400 Subject: [PATCH 1055/1110] drm/amd/dal: Move gamma program DPP after DCHUB following program guide Signed-off-by: Hersen Wu Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/dal/dc/core/dc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc.c b/drivers/gpu/drm/amd/dal/dc/core/dc.c index a5f33d4..e26a099 100644 --- a/drivers/gpu/drm/amd/dal/dc/core/dc.c +++ b/drivers/gpu/drm/amd/dal/dc/core/dc.c @@ -934,6 +934,9 @@ bool dc_commit_surfaces_to_target( dc_surface->dst_rect.width, dc_surface->dst_rect.height); + core_dc->hwss.set_plane_config( + core_dc, pipe_ctx, &context->res_ctx); + if (surface->public.gamma_correction) gamma = DC_GAMMA_TO_CORE( surface->public.gamma_correction); @@ -942,9 +945,6 @@ bool dc_commit_surfaces_to_target( pipe_ctx->ipp, pipe_ctx->opp, gamma, surface); - - core_dc->hwss.set_plane_config( - core_dc, pipe_ctx, &context->res_ctx); } core_dc->hwss.update_plane_addrs(core_dc, &context->res_ctx); -- 2.7.4