Skip to content
Commit 1aea1f46 authored by Maxime Ripard's avatar Maxime Ripard Committed by Phil Elwell
Browse files

drm: Introduce new state accessors in place of drm_atomic_get_crtc_state



drm_atomic_get_crtc_state relies on drm_atomic_get_existing_crtc_state
that is deprecated and isn't really clear on which state it provides.

Even worse, after the states have been swapped, if the CRTC is present
in the state drm_atomic_get_existing_crtc_state will return the old
state, whereas if the CRTC is not present, we'll use a copy of
crtc->state. crtc->state for the CRTC that is there at that point is the new
state though, which leads to confusion.

Let's provide two new helpers that make it clear what our expectations
are.

Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent 98583c5f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment