drm_atomic_add_affected_planes — add planes for crtc
int drm_atomic_add_affected_planes ( | struct drm_atomic_state * state, |
struct drm_crtc * crtc) ; |
This function walks the current configuration and adds all planes
currently used by crtc
to the atomic configuration state
. This is useful
when an atomic commit also needs to check all currently enabled plane on
crtc
, e.g. when changing the mode. It's also useful when re-enabling a CRTC
to avoid special code to force-enable all planes.
Since acquiring a plane state will always also acquire the w/w mutex of the current CRTC for that plane (if there is any) adding all the plane states for a CRTC will not reduce parallism of atomic updates.