drm/edid: Don't clear formats if using deep color
authorjsg <jsg@openbsd.org>
Mon, 11 Apr 2022 03:41:03 +0000 (03:41 +0000)
committerjsg <jsg@openbsd.org>
Mon, 11 Apr 2022 03:41:03 +0000 (03:41 +0000)
From Maxime Ripard
19da408ab41c984d49c55582b265645b964b6619 in linux 5.15.y/5.15.33
75478b3b393bcbdca4e6da76fe3a9f1a4133ec5d in mainline linux

sys/dev/pci/drm/drm_edid.c

index 9e5ad50..19b3c1d 100644 (file)
@@ -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);
        }