From: jsg Date: Wed, 2 Mar 2022 13:07:51 +0000 (+0000) Subject: drm/edid: Always set RGB444 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1ac7f47bfd931c15fe8175a08cf224e4764c1ec8;p=openbsd drm/edid: Always set RGB444 From Maxime Ripard 143dafa60aa7f0894a8f1b63b001e3a6f30169a0 in linux 5.15.y/5.15.26 ecbd4912a693b862e25cba0a6990a8c95b00721e in mainline linux --- diff --git a/sys/dev/pci/drm/drm_edid.c b/sys/dev/pci/drm/drm_edid.c index bf05050d905..7b72f23d770 100644 --- a/sys/dev/pci/drm/drm_edid.c +++ b/sys/dev/pci/drm/drm_edid.c @@ -5219,6 +5219,7 @@ u32 drm_add_display_info(struct drm_connector *connector, const struct edid *edi if (!(edid->input & DRM_EDID_INPUT_DIGITAL)) return quirks; + info->color_formats |= DRM_COLOR_FORMAT_RGB444; drm_parse_cea_ext(connector, edid); /* @@ -5267,7 +5268,6 @@ u32 drm_add_display_info(struct drm_connector *connector, const struct edid *edi DRM_DEBUG("%s: Assigning EDID-1.4 digital sink color depth as %d bpc.\n", connector->name, info->bpc); - info->color_formats |= DRM_COLOR_FORMAT_RGB444; if (edid->features & DRM_EDID_FEATURE_RGB_YCRCB444) info->color_formats |= DRM_COLOR_FORMAT_YCRCB444; if (edid->features & DRM_EDID_FEATURE_RGB_YCRCB422)