mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
drm/rockchip: dw-dp: Use max bpc for color depth limit
Signed-off-by: Wyon bi <bivvy.bi@rock-chips.com> Change-Id: I2ef8d8ba17af50abb4ad3be54e15b5e933ef1e48
This commit is contained in:
@@ -1922,7 +1922,7 @@ static u32 *dw_dp_bridge_atomic_get_output_bus_fmts(struct drm_bridge *bridge,
|
||||
for (i = 0; i < ARRAY_SIZE(possible_output_fmts); i++) {
|
||||
const struct dw_dp_output_format *fmt = &possible_output_fmts[i];
|
||||
|
||||
if (fmt->bpc > di->bpc)
|
||||
if (fmt->bpc > conn_state->max_bpc)
|
||||
continue;
|
||||
|
||||
if (!(di->color_formats & fmt->color_format))
|
||||
|
||||
Reference in New Issue
Block a user