diff options
Diffstat (limited to 'xc/programs/Xserver/hw/xfree86/xaa/xaalocal.h')
-rw-r--r-- | xc/programs/Xserver/hw/xfree86/xaa/xaalocal.h | 163 |
1 files changed, 152 insertions, 11 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/xaa/xaalocal.h b/xc/programs/Xserver/hw/xfree86/xaa/xaalocal.h index 5043be85f..14f65eb71 100644 --- a/xc/programs/Xserver/hw/xfree86/xaa/xaalocal.h +++ b/xc/programs/Xserver/hw/xfree86/xaa/xaalocal.h @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xaalocal.h,v 1.22 2000/02/11 06:35:17 mvojkovi Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xaalocal.h,v 1.26 2000/06/20 05:08:49 dawes Exp $ */ #ifndef _XAALOCAL_H #define _XAALOCAL_H @@ -149,6 +149,15 @@ XAADoImageWrite( DDXPointPtr pptSrc ); +void +XAADoImageRead( + DrawablePtr pSrc, + DrawablePtr pDst, + GC *pGC, + RegionPtr prgnDst, + DDXPointPtr pptSrc +); + void XAACopyWindow( WindowPtr pWin, @@ -722,6 +731,17 @@ XAAFillColorExpandRectsLSBFirst( ); void +XAAFillColorExpandRects3LSBFirst( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int nBox, + BoxPtr pBox, + int xorg, int yorg, + PixmapPtr pPix +); + +void XAAFillColorExpandRectsLSBFirstFixedBase( ScrnInfoPtr pScrn, int fg, int bg, int rop, @@ -732,6 +752,16 @@ XAAFillColorExpandRectsLSBFirstFixedBase( PixmapPtr pPix ); +void +XAAFillColorExpandRects3LSBFirstFixedBase( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int nBox, + BoxPtr pBox, + int xorg, int yorg, + PixmapPtr pPix +); void XAAFillColorExpandRectsMSBFirst( @@ -744,6 +774,16 @@ XAAFillColorExpandRectsMSBFirst( PixmapPtr pPix ); +void +XAAFillColorExpandRects3MSBFirst( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int nBox, + BoxPtr pBox, + int xorg, int yorg, + PixmapPtr pPix +); void XAAFillColorExpandRectsMSBFirstFixedBase( @@ -756,7 +796,16 @@ XAAFillColorExpandRectsMSBFirstFixedBase( PixmapPtr pPix ); - +void +XAAFillColorExpandRects3MSBFirstFixedBase( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int nBox, + BoxPtr pBox, + int xorg, int yorg, + PixmapPtr pPix +); void XAAFillScanlineColorExpandRectsLSBFirst( @@ -769,6 +818,16 @@ XAAFillScanlineColorExpandRectsLSBFirst( PixmapPtr pPix ); +void +XAAFillScanlineColorExpandRects3LSBFirst( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int nBox, + BoxPtr pBox, + int xorg, int yorg, + PixmapPtr pPix +); void XAAFillScanlineColorExpandRectsMSBFirst( @@ -781,6 +840,16 @@ XAAFillScanlineColorExpandRectsMSBFirst( PixmapPtr pPix ); +void +XAAFillScanlineColorExpandRects3MSBFirst( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int nBox, + BoxPtr pBox, + int xorg, int yorg, + PixmapPtr pPix +); void XAAFillColorExpandSpansLSBFirst( @@ -796,6 +865,19 @@ XAAFillColorExpandSpansLSBFirst( ); void +XAAFillColorExpandSpans3LSBFirst( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int n, + DDXPointPtr ppt, + int *pwidth, + int fSorted, + int xorg, int yorg, + PixmapPtr pPix +); + +void XAAFillColorExpandSpansLSBFirstFixedBase( ScrnInfoPtr pScrn, int fg, int bg, int rop, @@ -808,6 +890,18 @@ XAAFillColorExpandSpansLSBFirstFixedBase( PixmapPtr pPix ); +void +XAAFillColorExpandSpans3LSBFirstFixedBase( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int n, + DDXPointPtr ppt, + int *pwidth, + int fSorted, + int xorg, int yorg, + PixmapPtr pPix +); void XAAFillColorExpandSpansMSBFirst( @@ -822,6 +916,18 @@ XAAFillColorExpandSpansMSBFirst( PixmapPtr pPix ); +void +XAAFillColorExpandSpans3MSBFirst( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int n, + DDXPointPtr ppt, + int *pwidth, + int fSorted, + int xorg, int yorg, + PixmapPtr pPix +); void XAAFillColorExpandSpansMSBFirstFixedBase( @@ -836,6 +942,18 @@ XAAFillColorExpandSpansMSBFirstFixedBase( PixmapPtr pPix ); +void +XAAFillColorExpandSpans3MSBFirstFixedBase( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int n, + DDXPointPtr ppt, + int *pwidth, + int fSorted, + int xorg, int yorg, + PixmapPtr pPix +); void XAAFillScanlineColorExpandSpansLSBFirst( @@ -851,6 +969,19 @@ XAAFillScanlineColorExpandSpansLSBFirst( ); void +XAAFillScanlineColorExpandSpans3LSBFirst( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int n, + DDXPointPtr ppt, + int *pwidth, + int fSorted, + int xorg, int yorg, + PixmapPtr pPix +); + +void XAAPutImage( DrawablePtr pDraw, GCPtr pGC, @@ -877,6 +1008,19 @@ XAAFillScanlineColorExpandSpansMSBFirst( PixmapPtr pPix ); +void +XAAFillScanlineColorExpandSpans3MSBFirst( + ScrnInfoPtr pScrn, + int fg, int bg, int rop, + unsigned int planemask, + int n, + DDXPointPtr ppt, + int *pwidth, + int fSorted, + int xorg, int yorg, + PixmapPtr pPix +); + extern CARD32 *(*XAAStippleScanlineFuncMSBFirstFixedBase[6])( CARD32* base, CARD32* src, int offset, int width, int dwords @@ -1259,15 +1403,6 @@ XAAFillPolygonHelper( XAACacheInfoPtr pCache ); -void -XAAReadPixmap ( - ScrnInfoPtr pScrn, - int x, int y, int w, int h, - unsigned char *dst, - int dstwidth, - int bpp, int depth -); - void XAAPolySegment( DrawablePtr pDrawable, @@ -1383,6 +1518,7 @@ void XAAMoveInOffscreenPixmaps(ScreenPtr pScreen); void XAAMoveOutOffscreenPixmaps(ScreenPtr pScreen); void XAARemoveAreaCallback(FBAreaPtr area); void XAAMoveOutOffscreenPixmap(PixmapPtr pPix); +Bool XAAInitStateWrap(ScreenPtr pScreen, XAAInfoRecPtr infoRec); extern GCOps XAAFallbackOps; extern GCFuncs XAAGCFuncs; @@ -1475,6 +1611,11 @@ CARD32 XAAReverseBitOrder(CARD32 data); }} +#define SWAP_BITS_IN_BYTES(v) \ + (((0x01010101 & (v)) << 7) | ((0x02020202 & (v)) << 5) | \ + ((0x04040404 & (v)) << 3) | ((0x08080808 & (v)) << 1) | \ + ((0x10101010 & (v)) >> 1) | ((0x20202020 & (v)) >> 3) | \ + ((0x40404040 & (v)) >> 5) | ((0x80808080 & (v)) >> 7)) /* * Moved XAAPixmapCachePrivate here from xaaPCache.c, since driver |