Re: [PATCH v3 18/27] drm/msm/dpu: drop ubwc_dec_version

Konrad Dybcio
2026-03-13T10:22:09Z

On 3/12/26 2:29 PM, Dmitry Baryshkov wrote:
> Stop using ubwc_dec_version (the version of the UBWC block in the
> display subsystem) for detecting the enablement of the UBWC. Use only
> ubwc_enc_version, the version of the UBWC which we are setting up for.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> index 547d084f2944..f424be5ad82b 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> @@ -1718,8 +1718,7 @@ static bool dpu_plane_format_mod_supported(struct drm_plane *plane,
> uint32_t format, uint64_t modifier)
> {
> struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane);
> - bool has_no_ubwc = (dpu_kms->mdss->ubwc_enc_version == 0) &&
> - (dpu_kms->mdss->ubwc_dec_version == 0);
> + bool has_no_ubwc = (dpu_kms->mdss->ubwc_enc_version == 0);

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad