diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-12-22 08:45:27 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-12-22 08:47:34 -0500 |
commit | 587f693886e9025ba6fc30a8405902c43b2fcfb2 (patch) | |
tree | 841409d4033ba07399d99d1e8ed7485dc4abdf9c /src | |
parent | e7b26abc3c20fb53bf2cd02404ac5e0654fee18d (diff) |
radeon: add cvt timing if we only have panel w/h
fixes mac laptops without an edid
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_modes.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/radeon_modes.c b/src/radeon_modes.c index ec60cc9b..ce55c9fa 100644 --- a/src/radeon_modes.c +++ b/src/radeon_modes.c @@ -169,6 +169,20 @@ static DisplayModePtr RADEONFPNativeMode(xf86OutputPtr output) xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Added native panel mode: %dx%d\n", native_mode->PanelXRes, native_mode->PanelYRes); + } else if (native_mode->PanelXRes != 0 && + native_mode->PanelYRes != 0) { + + new = xf86CVTMode(native_mode->PanelXRes, native_mode->PanelYRes, 60.0, TRUE, FALSE); + + if (new) { + new->type = M_T_DRIVER | M_T_PREFERRED; + + new->next = NULL; + new->prev = NULL; + } + + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Added native panel mode using CVT: %dx%d\n", + native_mode->PanelXRes, native_mode->PanelYRes); } return new; |