summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellström <thomas@shipmail.org>2006-12-28 13:58:38 +0000
committerThomas Hellström <thomas@shipmail.org>2006-12-28 13:58:38 +0000
commit3ed13a411f4b39e308e749db0ab9522b9c5c6b2c (patch)
treef459dd8ff054af3e5b5759e942924b55b0d28605
parent344e9fac17fbbc5cbe56fd5b04c830b761e5f21c (diff)
Work around an obscure hardware limitation when texturing from
AGP.
-rw-r--r--ChangeLog7
-rw-r--r--unichrome/via_accel.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index de14242..187dac1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2006-12-28 Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
+ * unichrome/via_accel.c: (viaExaTexUploadToScreen):
+
+ Work around an obscure hardware limitation when texturing from
+ AGP.
+
+2006-12-28 Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
+
* unichrome/via_dri.c: (VIASetAgpMode):
Fix AGP mode setting.
diff --git a/unichrome/via_accel.c b/unichrome/via_accel.c
index 0ec216e..c6c15e9 100644
--- a/unichrome/via_accel.c
+++ b/unichrome/via_accel.c
@@ -1696,7 +1696,7 @@ viaExaTexUploadToScreen(PixmapPtr pDst, int x, int y, int w, int h, char *src,
dstOffset = exaGetPixmapOffset(pDst);
if (pVia->nPOT[0]) {
- texPitch = ALIGN_TO(wBytes, 8);
+ texPitch = ALIGN_TO(wBytes, 32);
height = VIA_AGP_UPL_SIZE / texPitch;
} else {
viaOrder(wBytes, &texPitch);