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

Dmitry Baryshkov
2026-03-12T13:30:04Z

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);

if (modifier == DRM_FORMAT_MOD_LINEAR)
return true;

--
2.47.3