drm/amd/display: Do full modeset when DSC debugfs is changed

[Why]
Whenever DSC parameters are changed we need to perform full modeset to commit
DSC changes to DC.

[How]
If dsc_force_changed is set, need to set mode_changed on new CRTC state

Signed-off-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Mikita Lipski <Mikita.Lipski@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Eryk Brol 2020-11-19 16:48:57 -05:00 коммит произвёл Alex Deucher
Родитель d0274aba24
Коммит 115a385c08
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -9320,6 +9320,9 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
ret = drm_atomic_add_affected_planes(state, crtc);
if (ret)
goto fail;
if (dm_old_crtc_state->dsc_force_changed && new_crtc_state)
new_crtc_state->mode_changed = true;
}
/*