diff options
| author | Nicholas Kazlauskas <[email protected]> | 2019-01-25 20:23:09 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-02-19 20:58:26 +0000 |
| commit | d8d2f174bcc2c26c3485c70e0c6fe22b27bce739 (patch) | |
| tree | 6ab391f4004d6b63737cbbcb511ee02f83c22e4d /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/amd/display: Do cursor updates after stream updates (diff) | |
| download | kernel-d8d2f174bcc2c26c3485c70e0c6fe22b27bce739.tar.gz kernel-d8d2f174bcc2c26c3485c70e0c6fe22b27bce739.zip | |
drm/amd/display: Clear stream->mode_changed after commit
[Why]
The stream->mode_changed flag can persist in the following sequence
of atomic commits:
Commit 1:
Enable CRTC0 (mode_changed = true), Enable CRTC1 (mode_changed = true)
Commit 2:
Disable CRTC1 (mode_changed = false)
In this sequence we want to keep the exiting CRTC0 but it's not in the
atomic state for the commit since it hasn't been modified. In this case
the stream->mode_changed flag persists as true and we don't re-program
the planes for the existing stream.
[How]
The flag needs to be cleared and it makes the most sense to do it within
DC after the state has been committed. Nothing following dc_commit_state
should think that the stream's mode has changed.
Signed-off-by: Nicholas Kazlauskas <[email protected]>
Reviewed-by: Leo Li <[email protected]>
Acked-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
