]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/msm/dpu: relax YUV requirements
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 26 Jun 2024 21:45:56 +0000 (00:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 15:36:02 +0000 (17:36 +0200)
[ Upstream commit cb18195914e353ece0e789e365a5a16872169805 ]

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: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/601049/
Link: https://lore.kernel.org/r/20240627-dpu-virtual-wide-v5-2-5efb90cbb8be@linaro.org
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c

index eabc4813c649c5f91494a1a63b0bbe40c82578a2..cbdb9628d962d16955e0b28290bc8ae7c72aea90 100644 (file)
@@ -746,10 +746,9 @@ static int dpu_plane_atomic_check_pipe(struct dpu_plane *pdpu,
        min_src_size = MSM_FORMAT_IS_YUV(fmt) ? 2 : 1;
 
        if (MSM_FORMAT_IS_YUV(fmt) &&
-           (!pipe->sspp->cap->sblk->scaler_blk.len ||
-            !pipe->sspp->cap->sblk->csc_blk.len)) {
+           !pipe->sspp->cap->sblk->csc_blk.len) {
                DPU_DEBUG_PLANE(pdpu,
-                               "plane doesn't have scaler/csc for yuv\n");
+                               "plane doesn't have csc for yuv\n");
                return -EINVAL;
        }