diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-15 07:58:15 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-15 07:58:15 +0000 |
commit | 198c804f23489520cec4eb55669f6f17eb425280 (patch) | |
tree | f1236357b0c485b4be312f432d5e550f35bd07d7 /src | |
parent | 11ca3dd3742f4c6683025ef2c0e9c62775c25abb (diff) |
xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c
//bugs.freedesktop.org/show_bug.cgi?id=591) attachment #308
(https://bugs.freedesktop.org/attachment.cgi?id=308): Fix video timing
problems with Sony PCG-C1VN Vaio Picturebook notebook && co. Patch by
Marc Aurele La France
Diffstat (limited to 'src')
-rw-r--r-- | src/atipreinit.c | 4 | ||||
-rw-r--r-- | src/ativga.c | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c index ebe54ad..df11246 100644 --- a/src/atipreinit.c +++ b/src/atipreinit.c @@ -1918,11 +1918,11 @@ ATIPreInit VBlankEnd += 0x0100U; pATI->LCDHBlankWidth = HBlankEnd - HBlankStart; - pATI->LCDHSyncStart = HSyncStart - HBlankStart - 1; + pATI->LCDHSyncStart = HSyncStart - HBlankStart; pATI->LCDHSyncWidth = HSyncEnd - HSyncStart; pATI->LCDVBlankWidth = VBlankEnd - VBlankStart; - pATI->LCDVSyncStart = VSyncStart - VBlankStart - 1; + pATI->LCDVSyncStart = VSyncStart - VBlankStart; pATI->LCDVSyncWidth = VSyncEnd - VSyncStart; HDisplay = HTotal + 5 - pATI->LCDHBlankWidth; diff --git a/src/ativga.c b/src/ativga.c index 2ac97cd..7ecc700 100644 --- a/src/ativga.c +++ b/src/ativga.c @@ -185,7 +185,11 @@ ATIVGACalculate (pATI->Chip >= ATI_CHIP_264CT)) pMode->CrtcHBlankStart--; pMode->CrtcHSyncStart = pMode->HSyncStart >> 3; + if (pATI->LCDPanelID >= 0) + pMode->CrtcHSyncStart--; pMode->CrtcHSyncEnd = pMode->HSyncEnd >> 3; + if (pATI->LCDPanelID >= 0) + pMode->CrtcHSyncEnd--; pMode->CrtcHBlankEnd = (pMode->HTotal >> 3) - 1; pMode->CrtcHTotal = (pMode->HTotal >> 3) - 5; pMode->CrtcHSkew = pMode->HSkew; @@ -327,6 +331,11 @@ ATIVGACalculate pMode->CrtcVBlankStart++; else pMode->CrtcVBlankStart--; + if (pATI->LCDPanelID >= 0) + { + pMode->CrtcVSyncStart--; + pMode->CrtcVSyncEnd--; + } pMode->CrtcVBlankEnd--; if (pATI->Chip < ATI_CHIP_264CT) pMode->CrtcVBlankEnd--; |