|
@@ -675,8 +675,10 @@ static int vop_plane_atomic_check(struct drm_plane *plane,
|
|
* Src.x1 can be odd when do clip, but yuv plane start point
|
|
* Src.x1 can be odd when do clip, but yuv plane start point
|
|
* need align with 2 pixel.
|
|
* need align with 2 pixel.
|
|
*/
|
|
*/
|
|
- if (is_yuv_support(fb->format->format) && ((state->src.x1 >> 16) % 2))
|
|
|
|
|
|
+ if (is_yuv_support(fb->format->format) && ((state->src.x1 >> 16) % 2)) {
|
|
|
|
+ DRM_ERROR("Invalid Source: Yuv format not support odd xpos\n");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
+ }
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|