plane_state->hw.color_encoding = from_plane_state->uapi.color_encoding;
        plane_state->hw.color_range = from_plane_state->uapi.color_range;
        plane_state->hw.scaling_filter = from_plane_state->uapi.scaling_filter;
+
+       plane_state->uapi.src = drm_plane_state_src(&from_plane_state->uapi);
+       plane_state->uapi.dst = drm_plane_state_dest(&from_plane_state->uapi);
 }
 
 void intel_plane_copy_hw_state(struct intel_plane_state *plane_state,
        }
 }
 
+int intel_atomic_plane_check_clipping(struct intel_plane_state *plane_state,
+                                     struct intel_crtc_state *crtc_state,
+                                     int min_scale, int max_scale,
+                                     bool can_position)
+{
+       struct drm_framebuffer *fb = plane_state->hw.fb;
+       struct drm_rect *src = &plane_state->uapi.src;
+       struct drm_rect *dst = &plane_state->uapi.dst;
+       unsigned int rotation = plane_state->hw.rotation;
+       struct drm_rect clip = {};
+       int hscale, vscale;
+
+       if (!fb) {
+               plane_state->uapi.visible = false;
+               return 0;
+       }
+
+       drm_rect_rotate(src, fb->width << 16, fb->height << 16, rotation);
+
+       /* Check scaling */
+       hscale = drm_rect_calc_hscale(src, dst, min_scale, max_scale);
+       vscale = drm_rect_calc_vscale(src, dst, min_scale, max_scale);
+       if (hscale < 0 || vscale < 0) {
+               DRM_DEBUG_KMS("Invalid scaling of plane\n");
+               drm_rect_debug_print("src: ", src, true);
+               drm_rect_debug_print("dst: ", dst, false);
+               return -ERANGE;
+       }
+
+       if (crtc_state->hw.enable) {
+               clip.x2 = crtc_state->pipe_src_w;
+               clip.y2 = crtc_state->pipe_src_h;
+       }
+
+       /* right side of the image is on the slave crtc, adjust dst to match */
+       if (crtc_state->bigjoiner_slave)
+               drm_rect_translate(dst, -crtc_state->pipe_src_w, 0);
+
+       /*
+        * FIXME: This might need further adjustment for seamless scaling
+        * with phase information, for the 2p2 and 2p1 scenarios.
+        */
+       plane_state->uapi.visible = drm_rect_clip_scaled(src, dst, &clip);
+
+       drm_rect_rotate_inv(src, fb->width << 16, fb->height << 16, rotation);
+
+       if (!can_position && plane_state->uapi.visible &&
+           !drm_rect_equals(dst, &clip)) {
+               DRM_DEBUG_KMS("Plane must cover entire CRTC\n");
+               drm_rect_debug_print("dst: ", dst, false);
+               drm_rect_debug_print("clip: ", &clip, false);
+               return -EINVAL;
+       }
+
+       return 0;
+}
+
 const struct drm_plane_helper_funcs intel_plane_helper_funcs = {
        .prepare_fb = intel_prepare_plane_fb,
        .cleanup_fb = intel_cleanup_plane_fb,
 
        if (ret)
                return ret;
 
-       ret = drm_atomic_helper_check_plane_state(&plane_state->uapi,
-                                                 &crtc_state->uapi,
-                                                 DRM_PLANE_HELPER_NO_SCALING,
-                                                 DRM_PLANE_HELPER_NO_SCALING,
-                                                 i9xx_plane_has_windowing(plane),
-                                                 true);
+       ret = intel_atomic_plane_check_clipping(plane_state, crtc_state,
+                                               DRM_PLANE_HELPER_NO_SCALING,
+                                               DRM_PLANE_HELPER_NO_SCALING,
+                                               i9xx_plane_has_windowing(plane));
        if (ret)
                return ret;
 
                return -EINVAL;
        }
 
-       ret = drm_atomic_helper_check_plane_state(&plane_state->uapi,
-                                                 &crtc_state->uapi,
-                                                 DRM_PLANE_HELPER_NO_SCALING,
-                                                 DRM_PLANE_HELPER_NO_SCALING,
-                                                 true, true);
+       ret = intel_atomic_plane_check_clipping(plane_state, crtc_state,
+                                               DRM_PLANE_HELPER_NO_SCALING,
+                                               DRM_PLANE_HELPER_NO_SCALING,
+                                               true);
        if (ret)
                return ret;
 
 
                }
        }
 
-       ret = drm_atomic_helper_check_plane_state(&plane_state->uapi,
-                                                 &crtc_state->uapi,
-                                                 min_scale, max_scale,
-                                                 true, true);
+       ret = intel_atomic_plane_check_clipping(plane_state, crtc_state,
+                                               min_scale, max_scale, true);
        if (ret)
                return ret;
 
        if (ret)
                return ret;
 
-       ret = drm_atomic_helper_check_plane_state(&plane_state->uapi,
-                                                 &crtc_state->uapi,
-                                                 DRM_PLANE_HELPER_NO_SCALING,
-                                                 DRM_PLANE_HELPER_NO_SCALING,
-                                                 true, true);
+       ret = intel_atomic_plane_check_clipping(plane_state, crtc_state,
+                                               DRM_PLANE_HELPER_NO_SCALING,
+                                               DRM_PLANE_HELPER_NO_SCALING,
+                                               true);
        if (ret)
                return ret;
 
                max_scale = skl_plane_max_scale(dev_priv, fb);
        }
 
-       ret = drm_atomic_helper_check_plane_state(&plane_state->uapi,
-                                                 &crtc_state->uapi,
-                                                 min_scale, max_scale,
-                                                 true, true);
+       ret = intel_atomic_plane_check_clipping(plane_state, crtc_state,
+                                               min_scale, max_scale, true);
        if (ret)
                return ret;