drm/msm/dpu: check ubwc support before adding compressed formats
authorAbhinav Kumar <quic_abhinavk@quicinc.com>
Fri, 28 Jun 2024 23:39:27 +0000 (16:39 -0700)
committerRob Clark <robdclark@chromium.org>
Mon, 1 Jul 2024 20:54:40 +0000 (13:54 -0700)
commit71c5c23be874d6e0d120c6e41b3191e354e6ebe3
tree59020b43ab607c122dd56136768c0aa48a46b455
parent2c4c53f316f6922211c41ff391ea4eff09e00339
drm/msm/dpu: check ubwc support before adding compressed formats

On QCM2290 chipset DPU does not support UBWC.

Add a dpu cap to indicate this and do not expose compressed formats
in this case.

changes since RFC:
- use ubwc enc and dec version of mdss_data instead of catalog
  to decide if ubwc is supported

Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/601392/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c