mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-01 16:18:07 -05:00
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>
This commit is contained in:
committed by
Daniel Vetter
parent
e01e9f75a0
commit
57744aa7cf
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user