summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2016-01-19 11:46:58 +0100
committerMark Yao <mark.yao@rock-chips.com>2016-01-20 01:55:43 +0100
commitc240906d36653944d5c049df7ce667a7e8bea6ac (patch)
treec1ffb141c43b18a9c925f6e88ee5a1e296ac43ed /include
parentdrm/rockchip/dsi: fix handling mipi_dsi_pixel_format_to_bpp result (diff)
downloadlinux-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.h4
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);