From: Andrey Grodzovsky Date: Wed, 5 Jul 2017 17:28:24 +0000 (-0400) Subject: drm/amd/display: Undo dc_update_surfaces_and_stream change. X-Git-Tag: v4.19~2140^2~23^2~354 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9ea47cec22ff332c2206249a18851c7eb68d832;p=platform%2Fkernel%2Flinux-rpi.git drm/amd/display: Undo dc_update_surfaces_and_stream change. Restoring conditional call to in_transfer_func since no reason to call it unconditionally. Signed-off-by: Andrey Grodzovsky 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 90a3150..2f93f0e 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1603,10 +1603,7 @@ void dc_update_surfaces_and_stream(struct dc *dc, if (update_type == UPDATE_TYPE_FAST) continue; - /* TODO find out why check is false */ - /* TODO with this still not programming some color stuff... panel is dark-ish */ - /*if (is_new_pipe_surface || - srf_updates[i].in_transfer_func)*/ + if (srf_updates[i].in_transfer_func) core_dc->hwss.set_input_transfer_func( pipe_ctx, pipe_ctx->surface);