diff options
author | Keith Packard <keithp@neko.keithp.com> | 2007-01-08 12:36:54 -0800 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2007-01-08 12:36:54 -0800 |
commit | da6a00f787e4d13e6b75768c1976f1c44ae5bf72 (patch) | |
tree | 86c92243fd4dfcb88e99a62fbab367f1d4b73d97 /src | |
parent | 66546d8a8006e1c828e18ccab850214fd8d56b63 (diff) |
Move EXA function declarations from source to header.
Several new global functions were not put into the header file leading to
potential mismatches between declaration and definition.
Diffstat (limited to 'src')
-rw-r--r-- | src/i830.h | 31 | ||||
-rw-r--r-- | src/i830_exa.c | 12 | ||||
-rw-r--r-- | src/i830_exa_render.c | 10 | ||||
-rw-r--r-- | src/i915_exa_render.c | 9 | ||||
-rw-r--r-- | src/i965_exa_render.c | 13 |
5 files changed, 26 insertions, 49 deletions
@@ -503,11 +503,6 @@ typedef struct _I830Rec { #define I830_SELECT_BACK 1 #define I830_SELECT_DEPTH 2 -#ifdef I830_USE_EXA -extern const int I830PatternROP[16]; -extern const int I830CopyROP[16]; -#endif - /* I830 specific functions */ extern int I830WaitLpRing(ScrnInfoPtr pScrn, int n, int timeout_millis); extern void I830SetPIOAccess(I830Ptr pI830); @@ -620,6 +615,32 @@ DisplayModePtr i830_ddc_get_modes(xf86OutputPtr output); /* i830_tv.c */ void i830_tv_init(ScrnInfoPtr pScrn); +#ifdef I830_USE_EXA +extern Bool I830EXACheckComposite(int, PicturePtr, PicturePtr, PicturePtr); +extern Bool I830EXAPrepareComposite(int, PicturePtr, PicturePtr, PicturePtr, + PixmapPtr, PixmapPtr, PixmapPtr); +extern Bool I915EXACheckComposite(int, PicturePtr, PicturePtr, PicturePtr); +extern Bool I915EXAPrepareComposite(int, PicturePtr, PicturePtr, PicturePtr, + PixmapPtr, PixmapPtr, PixmapPtr); + +extern Bool I965EXACheckComposite(int, PicturePtr, PicturePtr, PicturePtr); +extern Bool I965EXAPrepareComposite(int, PicturePtr, PicturePtr, PicturePtr, + PixmapPtr, PixmapPtr, PixmapPtr); +extern void I965EXAComposite(PixmapPtr pDst, int srcX, int srcY, int maskX, + int maskY, int dstX, int dstY, int width, int height); + +extern Bool +I830EXACheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture, + PicturePtr pDstPicture); + +extern Bool +I830EXAPrepareComposite(int op, PicturePtr pSrcPicture, + PicturePtr pMaskPicture, PicturePtr pDstPicture, + PixmapPtr pSrc, PixmapPtr pMask, PixmapPtr pDst); + +extern const int I830PatternROP[16]; +extern const int I830CopyROP[16]; +#endif /* Flags for memory allocation function */ #define FROM_ANYWHERE 0x00000000 #define FROM_POOL_ONLY 0x00000001 diff --git a/src/i830_exa.c b/src/i830_exa.c index 02ac9036..4944e409 100644 --- a/src/i830_exa.c +++ b/src/i830_exa.c @@ -109,18 +109,6 @@ union intfloat { OUT_RING(tmp.ui); \ } while(0) -extern Bool I830EXACheckComposite(int, PicturePtr, PicturePtr, PicturePtr); -extern Bool I830EXAPrepareComposite(int, PicturePtr, PicturePtr, PicturePtr, - PixmapPtr, PixmapPtr, PixmapPtr); -extern Bool I915EXACheckComposite(int, PicturePtr, PicturePtr, PicturePtr); -extern Bool I915EXAPrepareComposite(int, PicturePtr, PicturePtr, PicturePtr, - PixmapPtr, PixmapPtr, PixmapPtr); - -extern Bool I965EXACheckComposite(int, PicturePtr, PicturePtr, PicturePtr); -extern Bool I965EXAPrepareComposite(int, PicturePtr, PicturePtr, PicturePtr, - PixmapPtr, PixmapPtr, PixmapPtr); -extern void I965EXAComposite(PixmapPtr pDst, int srcX, int srcY, int maskX, - int maskY, int dstX, int dstY, int width, int height); /** * I830EXASync - wait for a command to finish * @pScreen: current screen diff --git a/src/i830_exa_render.c b/src/i830_exa_render.c index 5e202c87..ae4f95f1 100644 --- a/src/i830_exa_render.c +++ b/src/i830_exa_render.c @@ -63,16 +63,6 @@ struct formatinfo { CARD32 card_fmt; }; -extern Bool -I830EXACheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture, - PicturePtr pDstPicture); - -extern Bool -I830EXAPrepareComposite(int op, PicturePtr pSrcPicture, - PicturePtr pMaskPicture, PicturePtr pDstPicture, - PixmapPtr pSrc, PixmapPtr pMask, PixmapPtr pDst); - - #define TB0C_LAST_STAGE (1 << 31) #define TB0C_RESULT_SCALE_1X (0 << 29) #define TB0C_RESULT_SCALE_2X (1 << 29) diff --git a/src/i915_exa_render.c b/src/i915_exa_render.c index 640ebd9e..46533b35 100644 --- a/src/i915_exa_render.c +++ b/src/i915_exa_render.c @@ -64,15 +64,6 @@ struct blendinfo { CARD32 dst_blend; }; -extern Bool -I915EXACheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture, - PicturePtr pDstPicture); - -extern Bool -I915EXAPrepareComposite(int op, PicturePtr pSrcPicture, - PicturePtr pMaskPicture, PicturePtr pDstPicture, - PixmapPtr pSrc, PixmapPtr pMask, PixmapPtr pDst); - static struct blendinfo I915BlendOp[] = { /* Clear */ {0, 0, BLENDFACT_ZERO, BLENDFACT_ZERO}, diff --git a/src/i965_exa_render.c b/src/i965_exa_render.c index 89581e91..68293cd2 100644 --- a/src/i965_exa_render.c +++ b/src/i965_exa_render.c @@ -55,19 +55,6 @@ do { \ } while(0) #endif -extern Bool -I965EXACheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture, - PicturePtr pDstPicture); - -extern Bool -I965EXAPrepareComposite(int op, PicturePtr pSrcPicture, - PicturePtr pMaskPicture, PicturePtr pDstPicture, - PixmapPtr pSrc, PixmapPtr pMask, PixmapPtr pDst); - -extern void -I965EXAComposite(PixmapPtr pDst, int srcX, int srcY, int maskX, int maskY, - int dstX, int dstY, int width, int height); - static void I965GetBlendCntl(int op, PicturePtr pMask, CARD32 dst_format, CARD32 *sblend, CARD32 *dblend); |