Skip to content

Commit 1cd16c5

Browse files
HiassofTpelwell
authored andcommitted
drm/vc4: drop unnecessary and harmful HDMI RGB format check
RGB is a mandatory format for all DVI and HDMI monitors so there's no need to check for presence of the DRM_COLOR_FORMAT_RGB444 bit in color_formats. More importantly this checks breaks working around EDID issues with eg video=HDMI-A-1:1024x768D or drm.edid_firmware=edid/1024x768.bin as the RGB444 bit is only set when a valid EDID with digital bit set in the input byte is present - which isn't the case when no EDID can be read from the display device at all or with the in-built kernel EDIDs, which mimic analog (VGA) displays without the digital bit set. So drop the check, if we output video on the HDMI connector we can assume that the display can accept 8bit RGB. Signed-off-by: Matthias Reichl <[email protected]>
1 parent e3376fb commit 1cd16c5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/vc4/vc4_hdmi.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,9 +1962,6 @@ vc4_hdmi_sink_supports_format_bpc(const struct vc4_hdmi *vc4_hdmi,
19621962
case VC4_HDMI_OUTPUT_RGB:
19631963
drm_dbg(dev, "RGB Format, checking the constraints.\n");
19641964

1965-
if (!(info->color_formats & DRM_COLOR_FORMAT_RGB444))
1966-
return false;
1967-
19681965
if (bpc == 10 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_30)) {
19691966
drm_dbg(dev, "10 BPC but sink doesn't support Deep Color 30.\n");
19701967
return false;

0 commit comments

Comments
 (0)