drm/msm/dpu: drop duplicate drm formats from wb2_formats arrays
authorJunhao Xie <bigfoot@classfun.cn>
Fri, 24 May 2024 15:01:12 +0000 (23:01 +0800)
committerRob Clark <robdclark@chromium.org>
Wed, 5 Jun 2024 22:53:29 +0000 (15:53 -0700)
commit6ed817592638348e83facfe6a4deedb8d5e83357
tree79df4a04de4e9989ad0d0ba08e401e61bf6ba3b2
parent35322c39a653c775670f0713fb96ccc2cd91a747
drm/msm/dpu: drop duplicate drm formats from wb2_formats arrays

There are duplicate items in wb2_formats_rgb and wb2_formats_rgb_yuv,
which cause weston assertions failed.

weston: libweston/drm-formats.c:131: weston_drm_format_array_add_format:
Assertion `!weston_drm_format_array_find_format(formats, format)' failed.

Signed-off-by: Junhao Xie <bigfoot@classfun.cn>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Fixes: 8c16b988ba2d ("drm/msm/dpu: introduce separate wb2_format arrays for rgb and yuv")
Fixes: 53324b99bd7b ("drm/msm/dpu: add writeback blocks to the sm8250 DPU catalog")
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/596847/
Link: https://lore.kernel.org/r/20240524150128.1878297-2-bigfoot@classfun.cn
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c