diff options
author | John Keeping <john@metanate.com> | 2016-01-19 05:46:58 -0500 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2016-01-19 19:55:43 -0500 |
commit | c240906d36653944d5c049df7ce667a7e8bea6ac (patch) | |
tree | c1ffb141c43b18a9c925f6e88ee5a1e296ac43ed /include/drm | |
parent | 484bb6c969523aa547d854bb57104339ee4aa800 (diff) |
drm/atomic-helper: Export framebuffer_changed()
The Rockchip driver cannot use drm_atomic_helper_wait_for_vblanks()
because it has hardware counters for neither vblanks nor scanlines.
In order to simplify re-implementing the functionality for this driver,
export the framebuffer_changed() helper so it can be reused.
Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_atomic_helper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_atomic_helper.h b/include/drm/drm_atomic_helper.h index 89d008dc08e2..fe5efada9d68 100644 --- a/include/drm/drm_atomic_helper.h +++ b/include/drm/drm_atomic_helper.h | |||
@@ -42,6 +42,10 @@ int drm_atomic_helper_commit(struct drm_device *dev, | |||
42 | struct drm_atomic_state *state, | 42 | struct drm_atomic_state *state, |
43 | bool async); | 43 | bool async); |
44 | 44 | ||
45 | bool drm_atomic_helper_framebuffer_changed(struct drm_device *dev, | ||
46 | struct drm_atomic_state *old_state, | ||
47 | struct drm_crtc *crtc); | ||
48 | |||
45 | void drm_atomic_helper_wait_for_vblanks(struct drm_device *dev, | 49 | void drm_atomic_helper_wait_for_vblanks(struct drm_device *dev, |
46 | struct drm_atomic_state *old_state); | 50 | struct drm_atomic_state *old_state); |
47 | 51 | ||