@@ -833,20 +833,20 @@ static int vop_plane_atomic_check(struct drm_plane *plane,
833
833
* need align with 2 pixel.
834
834
*/
835
835
if (fb -> format -> is_yuv && ((new_plane_state -> src .x1 >> 16 ) % 2 )) {
836
- DRM_ERROR ("Invalid Source: Yuv format not support odd xpos\n" );
836
+ DRM_DEBUG_KMS ("Invalid Source: Yuv format not support odd xpos\n" );
837
837
return - EINVAL ;
838
838
}
839
839
840
840
if (fb -> format -> is_yuv && new_plane_state -> rotation & DRM_MODE_REFLECT_Y ) {
841
- DRM_ERROR ("Invalid Source: Yuv format does not support this rotation\n" );
841
+ DRM_DEBUG_KMS ("Invalid Source: Yuv format does not support this rotation\n" );
842
842
return - EINVAL ;
843
843
}
844
844
845
845
if (rockchip_afbc (fb -> modifier )) {
846
846
struct vop * vop = to_vop (crtc );
847
847
848
848
if (!vop -> data -> afbc ) {
849
- DRM_ERROR ("vop does not support AFBC\n" );
849
+ DRM_DEBUG_KMS ("vop does not support AFBC\n" );
850
850
return - EINVAL ;
851
851
}
852
852
@@ -855,15 +855,16 @@ static int vop_plane_atomic_check(struct drm_plane *plane,
855
855
return ret ;
856
856
857
857
if (new_plane_state -> src .x1 || new_plane_state -> src .y1 ) {
858
- DRM_ERROR ("AFBC does not support offset display, xpos=%d, ypos=%d, offset=%d\n" ,
859
- new_plane_state -> src .x1 ,
860
- new_plane_state -> src .y1 , fb -> offsets [0 ]);
858
+ DRM_DEBUG_KMS ("AFBC does not support offset display, " \
859
+ "xpos=%d, ypos=%d, offset=%d\n" ,
860
+ new_plane_state -> src .x1 , new_plane_state -> src .y1 ,
861
+ fb -> offsets [0 ]);
861
862
return - EINVAL ;
862
863
}
863
864
864
865
if (new_plane_state -> rotation && new_plane_state -> rotation != DRM_MODE_ROTATE_0 ) {
865
- DRM_ERROR ("No rotation support in AFBC, rotation=%d\n" ,
866
- new_plane_state -> rotation );
866
+ DRM_DEBUG_KMS ("No rotation support in AFBC, rotation=%d\n" ,
867
+ new_plane_state -> rotation );
867
868
return - EINVAL ;
868
869
}
869
870
}
0 commit comments