diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-08 08:18:59 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-09 04:28:41 -0400 |
commit | 081e9c0f8b5f88758376f50310d60d0dc4ace9e0 (patch) | |
tree | ad2fbe181d2b469046386e21852c33b57e201137 | |
parent | 30bb70ee731fbdcda405a01bf55e983f9a54e891 (diff) |
drm/atomic: kerneldoc for drm_atomic_crtc_needs_modeset
Just a bit of drive-by ocd.
v2: Improve per Liviu's feedback.
Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465388359-8070-7-git-send-email-daniel.vetter@ffwll.ch
-rw-r--r-- | include/drm/drm_atomic.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index d12cfb9c6062..a16861c882aa 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h | |||
@@ -198,6 +198,16 @@ int __must_check drm_atomic_nonblocking_commit(struct drm_atomic_state *state); | |||
198 | (plane_state) = (__state)->planes[__i].state, 1); \ | 198 | (plane_state) = (__state)->planes[__i].state, 1); \ |
199 | (__i)++) \ | 199 | (__i)++) \ |
200 | for_each_if (plane_state) | 200 | for_each_if (plane_state) |
201 | |||
202 | /** | ||
203 | * drm_atomic_crtc_needs_modeset - compute combined modeset need | ||
204 | * @state: &drm_crtc_state for the CRTC | ||
205 | * | ||
206 | * To give drivers flexibility struct &drm_crtc_state has 3 booleans to track | ||
207 | * whether the state CRTC changed enough to need a full modeset cycle: | ||
208 | * connectors_changed, mode_changed and active_change. This helper simply | ||
209 | * combines these three to compute the overall need for a modeset for @state. | ||
210 | */ | ||
201 | static inline bool | 211 | static inline bool |
202 | drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state) | 212 | drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state) |
203 | { | 213 | { |