Skip to content

Commit 996a223

Browse files
committed
drm/i915: Disable high-bpc on pre-1.4 EDID screens
Prevents black screens when using 30bpp framebuffers on my HDMI screens here. The DP input on the same screen though reports a 1.4 EDID with the correct 8bpc limit set. v2: Actually check for the right thing! Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
1 parent fd0c064 commit 996a223

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7694,6 +7694,13 @@ pipe_config_set_bpp(struct drm_crtc *crtc,
76947694
bpp, connector->display_info.bpc*3);
76957695
pipe_config->pipe_bpp = connector->display_info.bpc*3;
76967696
}
7697+
7698+
/* Clamp bpp to 8 on screens without EDID 1.4 */
7699+
if (connector->display_info.bpc == 0 && bpp > 24) {
7700+
DRM_DEBUG_KMS("clamping display bpp (was %d) to default limit of 24\n",
7701+
bpp);
7702+
pipe_config->pipe_bpp = 24;
7703+
}
76977704
}
76987705

76997706
return bpp;

0 commit comments

Comments
 (0)