[xserver-commit] xserver/hw/kdrive/src kaa.c,1.20,1.21
Eric Anholt
xserver-commit@pdx.freedesktop.org
Wed, 19 Nov 2003 23:49:48 -0800
- Previous message: [xserver-commit] xserver/hw/kdrive/ati ati.c,1.2,1.3 ati.h,1.1,1.2 ati_draw.c,1.2,1.3 ati_reg.h,1.1,1.2
- Next message: [xserver-commit] xserver ChangeLog,3.62,3.63
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: anholt
Update of /cvs/xserver/xserver/hw/kdrive/src
In directory pdx:/home/anholt/xserver/hw/kdrive/src
Modified Files:
kaa.c
Log Message:
- Fix a bug in pitch alignment for offscren pixmaps.
- Add 24-bit acceleration for Xati using the 8-bit trick from mach64.
- Add offscreen pixmap support to Xati.
Index: kaa.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/src/kaa.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- kaa.c 17 Nov 2003 22:09:12 -0000 1.20
+++ kaa.c 20 Nov 2003 07:49:46 -0000 1.21
@@ -70,7 +70,7 @@
#define KaaGetPixmapPriv(p) ((KaaPixmapPrivPtr)(p)->devPrivates[kaaPixmapPrivateIndex].ptr)
#define KaaSetPixmapPriv(p,a) ((p)->devPrivates[kaaPixmapPrivateIndex].ptr = (pointer) (a))
#define KaaPixmapPriv(p) KaaPixmapPrivPtr pKaaPixmap = KaaGetPixmapPriv(p)
-#define KaaPixmapPitch(w) (((w) + (pKaaScr->info->offscreenPitch - 1)) & ~(pKaaScr->info->offscreenPitch - 1))
+#define KaaPixmapPitch(pitch) (((pitch) + (pKaaScr->info->offscreenPitch - 1)) & ~(pKaaScr->info->offscreenPitch - 1))
#define MIN_OFFPIX_SIZE (4096)
@@ -123,7 +123,7 @@
int bpp = pPixmap->drawable.bitsPerPixel;
CARD16 h = pPixmap->drawable.height;
CARD16 w = pPixmap->drawable.width;
- int pitch = KaaPixmapPitch (w);
+ int pitch = KaaPixmapPitch (w * bpp / 8);
pKaaPixmap->devKind = pPixmap->devKind;
pKaaPixmap->devPrivate = pPixmap->devPrivate;
- Previous message: [xserver-commit] xserver/hw/kdrive/ati ati.c,1.2,1.3 ati.h,1.1,1.2 ati_draw.c,1.2,1.3 ati_reg.h,1.1,1.2
- Next message: [xserver-commit] xserver ChangeLog,3.62,3.63
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]