* power well the hardware state will go out of sync
                 * with the software state.
                 */
-               if (!drm_atomic_crtc_needs_modeset(&new_crtc_state->uapi) &&
+               if (!intel_crtc_needs_modeset(new_crtc_state) &&
                    skl_plane_selected_wm_equals(plane,
                                                 &old_crtc_state->wm.skl.optimal,
                                                 &new_crtc_state->wm.skl.optimal))
 
        enum plane_id plane_id;
 
        if (!new_crtc_state->hw.active ||
-           drm_atomic_crtc_needs_modeset(&new_crtc_state->uapi)) {
+           intel_crtc_needs_modeset(new_crtc_state)) {
                *intermediate = *optimal;
 
                intermediate->cxsr = false;
 {
        struct intel_crtc_state *crtc_state =
                intel_atomic_get_new_crtc_state(state, crtc);
-       bool needs_modeset = drm_atomic_crtc_needs_modeset(&crtc_state->uapi);
        const struct intel_plane_state *old_plane_state;
        const struct intel_plane_state *new_plane_state;
        struct intel_plane *plane;
         * FIFO setting we took over from the BIOS even if there
         * are no active planes on the crtc.
         */
-       if (needs_modeset)
+       if (intel_crtc_needs_modeset(crtc_state))
                dirty = ~0;
 
        if (!dirty)
                if (ret)
                        return ret;
 
-               if (needs_modeset ||
+               if (intel_crtc_needs_modeset(crtc_state) ||
                    memcmp(old_fifo_state, new_fifo_state,
                           sizeof(*new_fifo_state)) != 0)
                        crtc_state->fifo_changed = true;
        int level;
 
        if (!new_crtc_state->hw.active ||
-           drm_atomic_crtc_needs_modeset(&new_crtc_state->uapi)) {
+           intel_crtc_needs_modeset(new_crtc_state)) {
                *intermediate = *optimal;
 
                intermediate->cxsr = false;
         */
        *a = new_crtc_state->wm.ilk.optimal;
        if (!new_crtc_state->hw.active ||
-           drm_atomic_crtc_needs_modeset(&new_crtc_state->uapi) ||
+           intel_crtc_needs_modeset(new_crtc_state) ||
            state->skip_intermediate_wm)
                return 0;