aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-06-23 10:12:40 +1000
committerDave Airlie <airlied@redhat.com>2015-06-23 10:12:40 +1000
commitb7ddeee58bee54553552c1be9cf477efcdb2f30e (patch)
tree00d6ba29a1c1dc49dc062e1b0ea34c134c32d8ee /include/drm
parentMerge tag 'drm-intel-next-fixes-2015-06-18' of git://anongit.freedesktop.org/drm-intel into drm-next (diff)
parentdrm/atomic: Don't set crtc_state->enable manually (diff)
downloadlinux-dev-b7ddeee58bee54553552c1be9cf477efcdb2f30e.tar.xz
linux-dev-b7ddeee58bee54553552c1be9cf477efcdb2f30e.zip
Merge tag 'topic/drm-misc-2015-06-22' of git://anongit.freedesktop.org/drm-intel into drm-next
One more drm-misc pull for 4.2. The important one is the fix from Laurent for Daniel Stone's mode_blob work. * tag 'topic/drm-misc-2015-06-22' of git://anongit.freedesktop.org/drm-intel: drm/atomic: Don't set crtc_state->enable manually drm: prime: Document gem_prime_mmap drm: Avoid the double clflush on the last cache line in drm_clflush_virt_range() drm/atomic: Extract needs_modeset function drm/cma: Fix 64-bit size_t build warnings Documentation/drm: Update rotation property
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_atomic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index 1bbfedf466b9..8a3a913320eb 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -163,5 +163,11 @@ int __must_check drm_atomic_async_commit(struct drm_atomic_state *state);
(plane_state) = (state)->plane_states[__i], 1); \
(__i)++) \
if (plane_state)
+static inline bool
+drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state)
+{
+ return state->mode_changed || state->active_changed;
+}
+
#endif /* DRM_ATOMIC_H_ */