summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_atomic.h
diff options
context:
space:
mode:
authorMaarten Lankhorst2015-05-19 16:41:02 +0200
committerDaniel Vetter2015-05-21 10:29:07 +0200
commite01e9f75a0c4e6cdbf1f139e37e9161408e49b7c (patch)
tree7de1442d2cfa68763e3d943b07018a06f31b8cda /include/drm/drm_atomic.h
parentdrm/atomic: add commit_planes_on_crtc helper (diff)
downloadkernel-qcow2-linux-e01e9f75a0c4e6cdbf1f139e37e9161408e49b7c.tar.gz
kernel-qcow2-linux-e01e9f75a0c4e6cdbf1f139e37e9161408e49b7c.tar.xz
kernel-qcow2-linux-e01e9f75a0c4e6cdbf1f139e37e9161408e49b7c.zip
drm/atomic: add drm_atomic_add_affected_planes
This is a convenience function to add all planes for a crtc, similar to add_affected_connectors. This will be used in drm_atomic_helper_check_modeset, but drivers can call it too when they need to recalculate all state. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> [danvet: Amend kerneldoc a bit.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_atomic.h')
-rw-r--r--include/drm/drm_atomic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index f0d3a7387d99..e89db0c377ba 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -120,6 +120,10 @@ drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state,
int __must_check
drm_atomic_add_affected_connectors(struct drm_atomic_state *state,
struct drm_crtc *crtc);
+int __must_check
+drm_atomic_add_affected_planes(struct drm_atomic_state *state,
+ struct drm_crtc *crtc);
+
int
drm_atomic_connectors_for_crtc(struct drm_atomic_state *state,
struct drm_crtc *crtc);