Skip to content

Commit bdb680f

Browse files
committed
drm: apple: Set min and max VRRs for MacBook Pros
Since these machines do not have proper EDID/DisplayID data, we need to help the driver along a little bit. We know that "ProMotion" displays can do 24-120 Hz VRR, so let's populate the mode with those values. Signed-off-by: James Calligeros <[email protected]>
1 parent 126db21 commit bdb680f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/apple/parser.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,11 @@ static int parse_mode(struct dcp_parse_ctx *handle,
511511
*/
512512
if (vert.precise_sync_rate >> 16 == 120 &&
513513
((horiz.active == 3024 && vert.active == 1964) ||
514-
(horiz.active == 3456 && vert.active == 2234)))
514+
(horiz.active == 3456 && vert.active == 2234))) {
515+
out->min_vrr = 24 << 16;
516+
out->max_vrr = 120 << 16;
515517
out->vrr = true;
518+
}
516519

517520
if (out->min_vrr && out->max_vrr)
518521
out->vrr = true;

0 commit comments

Comments
 (0)