summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-08-26 18:00:49 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-08-26 18:00:49 +0200
commit5d001aeb21aabde5b6cd919692de726ebaeb3481 (patch)
treedd46d92a705e4354426cb176e418b0877d15ce67
parent693f165e2c6c431e6c61c835781883c2bcef5876 (diff)
Fixed alignment values (taken from kdrive).
-rw-r--r--src/mga_exa.c10
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;