From d503be4ad6ecc5e68eed9ff673d8d441763b29e9 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 11 Apr 2022 03:41:03 +0000 Subject: [PATCH] drm/edid: Don't clear formats if using deep color From Maxime Ripard 19da408ab41c984d49c55582b265645b964b6619 in linux 5.15.y/5.15.33 75478b3b393bcbdca4e6da76fe3a9f1a4133ec5d in mainline linux --- sys/dev/pci/drm/drm_edid.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/dev/pci/drm/drm_edid.c b/sys/dev/pci/drm/drm_edid.c index 9e5ad501ffc..19b3c1d79a1 100644 --- a/sys/dev/pci/drm/drm_edid.c +++ b/sys/dev/pci/drm/drm_edid.c @@ -5047,16 +5047,8 @@ static void drm_parse_hdmi_deep_color_info(struct drm_connector *connector, connector->name, dc_bpc); info->bpc = dc_bpc; - /* - * Deep color support mandates RGB444 support for all video - * modes and forbids YCRCB422 support for all video modes per - * HDMI 1.3 spec. - */ - info->color_formats = DRM_COLOR_FORMAT_RGB444; - /* YCRCB444 is optional according to spec. */ if (hdmi[6] & DRM_EDID_HDMI_DC_Y444) { - info->color_formats |= DRM_COLOR_FORMAT_YCRCB444; DRM_DEBUG("%s: HDMI sink does YCRCB444 in deep color.\n", connector->name); } -- 2.20.1