drm/edid: Always set RGB444
authorjsg <jsg@openbsd.org>
Wed, 2 Mar 2022 13:07:51 +0000 (13:07 +0000)
committerjsg <jsg@openbsd.org>
Wed, 2 Mar 2022 13:07:51 +0000 (13:07 +0000)
From Maxime Ripard
143dafa60aa7f0894a8f1b63b001e3a6f30169a0 in linux 5.15.y/5.15.26
ecbd4912a693b862e25cba0a6990a8c95b00721e in mainline linux

sys/dev/pci/drm/drm_edid.c

index bf05050..7b72f23 100644 (file)
@@ -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)