drm/amd/display: reprogram surface config on scaling change
authorEric Yang <Eric.Yang2@amd.com>
Thu, 7 Dec 2017 15:42:33 +0000 (10:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Dec 2017 19:47:36 +0000 (14:47 -0500)
commitf8668c099e71bdd2c4e8bfd3d79178e243a99835
treea7843755386e4384545082e2f4b824a3e17e1356
parent3253af353dbc5b66788b42d39a62e922a095b531
drm/amd/display: reprogram surface config on scaling change

When plane size changes, we need to reprogram surface pitch in addition
to viewport and scaler. This change is a conservative way to make this happen.
However it could be more optimized to move pitch programming into
mem_program_viewport.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Andrew Jiang <Andrew.Jiang@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