drm/atomic: pass old crtc state to atomic_begin/flush.
In intel it's useful to keep track of some state changes with old crtc state vs new state, for example to disable initial planes or when a modeset's prevented during fastboot. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com> [danvet: squash in fixup for exynos provided by Maarten.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:

committed by
Daniel Vetter

parent
fc596660dd
commit
613d2b2721
@@ -437,7 +437,7 @@ int drm_plane_helper_commit(struct drm_plane *plane,
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
if (crtc_funcs[i] && crtc_funcs[i]->atomic_begin)
|
||||
crtc_funcs[i]->atomic_begin(crtc[i]);
|
||||
crtc_funcs[i]->atomic_begin(crtc[i], crtc[i]->state);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -452,7 +452,7 @@ int drm_plane_helper_commit(struct drm_plane *plane,
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
if (crtc_funcs[i] && crtc_funcs[i]->atomic_flush)
|
||||
crtc_funcs[i]->atomic_flush(crtc[i]);
|
||||
crtc_funcs[i]->atomic_flush(crtc[i], crtc[i]->state);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user