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 <yubing.zhang@rock-chips.com>
This commit is contained in:
Zhang Yubing
2025-07-01 11:43:21 +08:00
committed by Tao Huang
parent f597a314cd
commit 93db60f415

View File

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