drm/amd/display: Program cursor regs after context swapped.
authorYongqiang Sun <yongqiang.sun@amd.com>
Tue, 21 Nov 2017 20:42:17 +0000 (15:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:54:18 +0000 (10:54 -0500)
commit457fbe76ecc5a28072aeb0d17d3ea6c8a9c2a304
tree04e323a75cb6d73104ce0898b6a06b822dd28772
parent0c31a8218b80da4220757a0eff2d4f7c1229842d
drm/amd/display: Program cursor regs after context swapped.

Cursor is abnormal after pipe_ctx is changed in context.
Cause: cursor attributes is programmed right after front end
programming, but it use old pipe_ctx to program which is not
updated yet.
Solution:
Program cursor regs after context swapped.

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/dcn10/dcn10_hw_sequencer.c