Skip to content

Commit cb18195

Browse files
lumagAbhinav Kumar
authored andcommitted
drm/msm/dpu: relax YUV requirements
YUV formats require only CSC to be enabled. Even decimated formats should not require scaler. Relax the requirement and don't check for the scaler block while checking if YUV format can be enabled. Fixes: 25fdd59 ("drm/msm: Add SDM845 DPU support") Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/601049/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abhinav Kumar <[email protected]>
1 parent 2db13c4 commit cb18195

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,9 @@ static int dpu_plane_atomic_check_pipe(struct dpu_plane *pdpu,
747747
min_src_size = MSM_FORMAT_IS_YUV(fmt) ? 2 : 1;
748748

749749
if (MSM_FORMAT_IS_YUV(fmt) &&
750-
(!pipe->sspp->cap->sblk->scaler_blk.len ||
751-
!pipe->sspp->cap->sblk->csc_blk.len)) {
750+
!pipe->sspp->cap->sblk->csc_blk.len) {
752751
DPU_DEBUG_PLANE(pdpu,
753-
"plane doesn't have scaler/csc for yuv\n");
752+
"plane doesn't have csc for yuv\n");
754753
return -EINVAL;
755754
}
756755

0 commit comments

Comments
 (0)