drm/amd/display: Fixed switching mode half screen gamma incorrect.
authorYongqiang Sun <yongqiang.sun@amd.com>
Tue, 3 Oct 2017 19:03:49 +0000 (15:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:47:52 +0000 (16:47 -0400)
commit067c878a220cbe6198b3cfdc7f372adab4762ad8
tree2c88291bb597869d28056f1ceffd9041825e1a31
parentd050f8ed14494ea23c6e10b5893010946ef0f78b
drm/amd/display: Fixed switching mode half screen gamma incorrect.

Half screen gamma setting and cursor are incorrect
when switching mode through win+p due to wrong programming
gamma sequence (In case of bottom pipe, gamma and cursor are
programmed before front end programmed, pipe is power gated).

change:
1. Cache curor attributes to stream
2. Move set gamma and cursor inside front end
   programming.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c