drm/atomic: add all affected planes in drm_atomic_helper_check_modeset
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 19 May 2015 14:41:03 +0000 (16:41 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 21 May 2015 08:29:07 +0000 (10:29 +0200)
Drivers may need to recalculate plane state when a modeset occurs,
not reliably adding them might cause hard to debug bugs.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c

index 424a98bfa6869a283090dc641948452ea485c3d9..21259e70adee7c2fad945bbba685e6994950f392 100644 (file)
@@ -429,6 +429,10 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,
                if (ret != 0)
                        return ret;
 
+               ret = drm_atomic_add_affected_planes(state, crtc);
+               if (ret != 0)
+                       return ret;
+
                num_connectors = drm_atomic_connectors_for_crtc(state,
                                                                crtc);