|
@@ -147,6 +147,8 @@ static int malidp_se_check_scaling(struct malidp_plane *mp,
|
|
if (!crtc_state)
|
|
if (!crtc_state)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
+ mc = to_malidp_crtc_state(crtc_state);
|
|
|
|
+
|
|
ret = drm_atomic_helper_check_plane_state(state, crtc_state,
|
|
ret = drm_atomic_helper_check_plane_state(state, crtc_state,
|
|
0, INT_MAX, true, true);
|
|
0, INT_MAX, true, true);
|
|
if (ret)
|
|
if (ret)
|
|
@@ -163,8 +165,6 @@ static int malidp_se_check_scaling(struct malidp_plane *mp,
|
|
if (mp->layer->id & (DE_SMART | DE_GRAPHICS2))
|
|
if (mp->layer->id & (DE_SMART | DE_GRAPHICS2))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- mc = to_malidp_crtc_state(crtc_state);
|
|
|
|
-
|
|
|
|
mc->scaled_planes_mask |= mp->layer->id;
|
|
mc->scaled_planes_mask |= mp->layer->id;
|
|
/* Defer scaling requirements calculation to the crtc check. */
|
|
/* Defer scaling requirements calculation to the crtc check. */
|
|
return 0;
|
|
return 0;
|