summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_atomic_helper.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2015-05-19 16:41:03 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-05-21 10:29:07 +0200
commit57744aa7cfb5969c5a0621f4cfa45bb83d391064 (patch)
tree695d87afbc8eb5877d388aa8162c75b71fb95dcd /drivers/gpu/drm/drm_atomic_helper.c
parente01e9f75a0c4e6cdbf1f139e37e9161408e49b7c (diff)
downloadlwn-57744aa7cfb5969c5a0621f4cfa45bb83d391064.tar.gz
lwn-57744aa7cfb5969c5a0621f4cfa45bb83d391064.zip
drm/atomic: add all affected planes in drm_atomic_helper_check_modeset
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>
Diffstat (limited to 'drivers/gpu/drm/drm_atomic_helper.c')
-rw-r--r--drivers/gpu/drm/drm_atomic_helper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c
index 424a98bfa686..21259e70adee 100644
--- a/drivers/gpu/drm/drm_atomic_helper.c
+++ b/drivers/gpu/drm/drm_atomic_helper.c
@@ -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);