diff options
author | John Keeping <john@metanate.com> | 2016-01-19 11:46:58 +0100 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2016-01-20 01:55:43 +0100 |
commit | c240906d36653944d5c049df7ce667a7e8bea6ac (patch) | |
tree | c1ffb141c43b18a9c925f6e88ee5a1e296ac43ed /include | |
parent | drm/rockchip/dsi: fix handling mipi_dsi_pixel_format_to_bpp result (diff) | |
download | linux-c240906d36653944d5c049df7ce667a7e8bea6ac.tar.xz linux-c240906d36653944d5c049df7ce667a7e8bea6ac.zip |
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')
-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, struct drm_atomic_state *state, bool async); +bool drm_atomic_helper_framebuffer_changed(struct drm_device *dev, + struct drm_atomic_state *old_state, + struct drm_crtc *crtc); + void drm_atomic_helper_wait_for_vblanks(struct drm_device *dev, struct drm_atomic_state *old_state); |