summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_atomic.h
diff options
context:
space:
mode:
authorMaarten Lankhorst2015-07-21 13:28:57 +0200
committerDaniel Vetter2015-07-27 10:06:38 +0200
commitfc596660dd4e83f7f84e3cd7b25dc5e8e83000ef (patch)
treed2a4fcc7a095071396f4708ead9beb4977a8c46d /include/drm/drm_atomic.h
parentdrm: Fix DP_TEST_COUNT_MASK (diff)
downloadkernel-qcow2-linux-fc596660dd4e83f7f84e3cd7b25dc5e8e83000ef.tar.gz
kernel-qcow2-linux-fc596660dd4e83f7f84e3cd7b25dc5e8e83000ef.tar.xz
kernel-qcow2-linux-fc596660dd4e83f7f84e3cd7b25dc5e8e83000ef.zip
drm/atomic: add connectors_changed to separate it from mode_changed, v2
This can be a separate case from mode_changed, when connectors stay the same but only the mode is different. Drivers may choose to implement specific optimizations to prevent a full modeset for this case. Changes since v1: - Update kerneldocs slightly. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_atomic.h')
-rw-r--r--include/drm/drm_atomic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index 8a3a913320eb..e67aeac2aee0 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -166,7 +166,8 @@ int __must_check drm_atomic_async_commit(struct drm_atomic_state *state);
static inline bool
drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state)
{
- return state->mode_changed || state->active_changed;
+ return state->mode_changed || state->active_changed ||
+ state->connectors_changed;
}