From 3ed13a411f4b39e308e749db0ab9522b9c5c6b2c Mon Sep 17 00:00:00 2001 From: Thomas Hellström Date: Thu, 28 Dec 2006 13:58:38 +0000 Subject: Work around an obscure hardware limitation when texturing from AGP. --- ChangeLog | 7 +++++++ unichrome/via_accel.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index de14242..187dac1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-12-28 Thomas Hellstrom + + * unichrome/via_accel.c: (viaExaTexUploadToScreen): + + Work around an obscure hardware limitation when texturing from + AGP. + 2006-12-28 Thomas Hellstrom * unichrome/via_dri.c: (VIASetAgpMode): 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); -- cgit v1.2.3