summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);