Commit 7012b09
committed
drm: apple: Set swap timestamps to sane values for Adaptive Sync
Setting these timestamps to a dummy value worked fine for enabling
a fixed 120 Hz mode on the MacBook Pros, however doing so causes
Adaptive Sync displays to simply switch between full and minimum
refresh rates. Setting these timestamps based on the swap pacing
seems to fix this, and makes the display's refresh rate match
the incoming swap rate.
Note that the names and values are best-guess only. These seem
to work fine for driving VRR displays, but may still be incorrect.
Signed-off-by: James Calligeros <[email protected]>1 parent 8eb2787 commit 7012b09
2 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1301 | 1301 | | |
1302 | 1302 | | |
1303 | 1303 | | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1304 | 1313 | | |
1305 | 1314 | | |
1306 | 1315 | | |
| |||
1417 | 1426 | | |
1418 | 1427 | | |
1419 | 1428 | | |
1420 | | - | |
1421 | | - | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1422 | 1432 | | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
1426 | 1436 | | |
1427 | 1437 | | |
1428 | 1438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments