diff options
author | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-08-26 18:00:49 +0200 |
---|---|---|
committer | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-08-26 18:00:49 +0200 |
commit | 5d001aeb21aabde5b6cd919692de726ebaeb3481 (patch) | |
tree | dd46d92a705e4354426cb176e418b0877d15ce67 | |
parent | 693f165e2c6c431e6c61c835781883c2bcef5876 (diff) |
Fixed alignment values (taken from kdrive).
-rw-r--r-- | src/mga_exa.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mga_exa.c b/src/mga_exa.c index 20534dc..9b0f01e 100644 --- a/src/mga_exa.c +++ b/src/mga_exa.c @@ -759,8 +759,14 @@ mgaExaInit(ScreenPtr pScreen) xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Start at %p, size %x, osb %x\n", pExa->memoryBase, pExa->memorySize, pExa->offScreenBase); - pExa->pixmapOffsetAlign = 64; - pExa->pixmapPitchAlign = 64; + /* In PW24 mode, we need to align to "3 64-bytes" */ + pExa->pixmapOffsetAlign = 192; + + /* Pitch alignment is in sets of 32 pixels, and we need to cover + * 32bpp, so it's 128 bytes. + */ + pExa->pixmapPitchAlign = 128; + pExa->maxX = 2048; pExa->maxY = 2048; |