From 93db60f4151ce191ec00a028c791cc6d5413d062 Mon Sep 17 00:00:00 2001 From: Zhang Yubing Date: Tue, 1 Jul 2025 11:43:21 +0800 Subject: [PATCH] drm/rockchip: dw-dp: limit color depth 8bit for hdr In some case, the color depth will be 8bit when output hdr content. So it need limit coor depth as 8bit for hdr. Change-Id: I7415230d4e0c4c08097ea5912aff791875db6176 Signed-off-by: Zhang Yubing --- drivers/gpu/drm/rockchip/dw-dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw-dp.c b/drivers/gpu/drm/rockchip/dw-dp.c index d77c05ccd6c2..53f55c73a229 100644 --- a/drivers/gpu/drm/rockchip/dw-dp.c +++ b/drivers/gpu/drm/rockchip/dw-dp.c @@ -4675,7 +4675,7 @@ static u32 *dw_dp_bridge_atomic_get_output_bus_fmts(struct drm_bridge *bridge, continue; } - if (dw_dp_is_hdr_eotf(dp->eotf_type) && fmt->bpc < 10) + if (dw_dp_is_hdr_eotf(dp->eotf_type) && fmt->bpc < 8) continue; output_fmts[j++] = fmt->bus_format;