exa: some minor cleanup
- Fix compile warning - Order exa.h by source file that exports the function. - Move the function i created earlier to private headers.
This commit is contained in:
parent
de79edbd9f
commit
7c14fdbacf
35
exa/exa.h
35
exa/exa.h
|
@ -744,21 +744,36 @@ typedef struct _ExaDriver {
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
/* in exa.c */
|
||||||
ExaDriverPtr
|
ExaDriverPtr
|
||||||
exaDriverAlloc(void);
|
exaDriverAlloc(void);
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
exaDriverInit(ScreenPtr pScreen,
|
exaDriverInit(ScreenPtr pScreen,
|
||||||
ExaDriverPtr pScreenInfo);
|
ExaDriverPtr pScreenInfo);
|
||||||
|
|
||||||
void
|
void
|
||||||
exaDriverFini(ScreenPtr pScreen);
|
exaDriverFini(ScreenPtr pScreen);
|
||||||
|
|
||||||
void
|
void
|
||||||
exaMarkSync(ScreenPtr pScreen);
|
exaMarkSync(ScreenPtr pScreen);
|
||||||
void
|
void
|
||||||
exaWaitSync(ScreenPtr pScreen);
|
exaWaitSync(ScreenPtr pScreen);
|
||||||
|
|
||||||
|
unsigned long
|
||||||
|
exaGetPixmapOffset(PixmapPtr pPix);
|
||||||
|
|
||||||
|
unsigned long
|
||||||
|
exaGetPixmapPitch(PixmapPtr pPix);
|
||||||
|
|
||||||
|
unsigned long
|
||||||
|
exaGetPixmapSize(PixmapPtr pPix);
|
||||||
|
|
||||||
|
void *
|
||||||
|
exaGetPixmapDriverPrivate(PixmapPtr p);
|
||||||
|
|
||||||
|
|
||||||
|
/* in exa_offscreen.c */
|
||||||
ExaOffscreenArea *
|
ExaOffscreenArea *
|
||||||
exaOffscreenAlloc(ScreenPtr pScreen, int size, int align,
|
exaOffscreenAlloc(ScreenPtr pScreen, int size, int align,
|
||||||
Bool locked,
|
Bool locked,
|
||||||
|
@ -771,32 +786,22 @@ exaOffscreenFree(ScreenPtr pScreen, ExaOffscreenArea *area);
|
||||||
void
|
void
|
||||||
ExaOffscreenMarkUsed (PixmapPtr pPixmap);
|
ExaOffscreenMarkUsed (PixmapPtr pPixmap);
|
||||||
|
|
||||||
unsigned long
|
|
||||||
exaGetPixmapOffset(PixmapPtr pPix);
|
|
||||||
|
|
||||||
unsigned long
|
|
||||||
exaGetPixmapPitch(PixmapPtr pPix);
|
|
||||||
|
|
||||||
unsigned long
|
|
||||||
exaGetPixmapSize(PixmapPtr pPix);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
exaEnableDisableFBAccess (int index, Bool enable);
|
exaEnableDisableFBAccess (int index, Bool enable);
|
||||||
|
|
||||||
|
|
||||||
|
/* in exa_migration.c */
|
||||||
void
|
void
|
||||||
exaMoveInPixmap (PixmapPtr pPixmap);
|
exaMoveInPixmap (PixmapPtr pPixmap);
|
||||||
|
|
||||||
void
|
void
|
||||||
exaMoveOutPixmap (PixmapPtr pPixmap);
|
exaMoveOutPixmap (PixmapPtr pPixmap);
|
||||||
|
|
||||||
void *
|
|
||||||
exaGetPixmapDriverPrivate(PixmapPtr p);
|
|
||||||
|
|
||||||
|
/* in exa_unaccel.c */
|
||||||
CARD32
|
CARD32
|
||||||
exaGetPixmapFirstPixel (PixmapPtr pPixmap);
|
exaGetPixmapFirstPixel (PixmapPtr pPixmap);
|
||||||
|
|
||||||
Bool
|
|
||||||
exaDamageDestForMigration(PixmapPtr pPix, RegionPtr region);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns TRUE if the given planemask covers all the significant bits in the
|
* Returns TRUE if the given planemask covers all the significant bits in the
|
||||||
|
|
|
@ -242,9 +242,9 @@ exaCopyDirty(ExaMigrationPtr migrate, RegionPtr pValidDst, RegionPtr pValidSrc,
|
||||||
pBox->x1, pBox->y1,
|
pBox->x1, pBox->y1,
|
||||||
pBox->x2 - pBox->x1,
|
pBox->x2 - pBox->x1,
|
||||||
pBox->y2 - pBox->y1,
|
pBox->y2 - pBox->y1,
|
||||||
pExaPixmap->sys_ptr
|
(char *) (pExaPixmap->sys_ptr
|
||||||
+ pBox->y1 * pExaPixmap->sys_pitch
|
+ pBox->y1 * pExaPixmap->sys_pitch
|
||||||
+ pBox->x1 * pPixmap->drawable.bitsPerPixel / 8,
|
+ pBox->x1 * pPixmap->drawable.bitsPerPixel / 8),
|
||||||
pExaPixmap->sys_pitch))
|
pExaPixmap->sys_pitch))
|
||||||
{
|
{
|
||||||
if (!access_prepared) {
|
if (!access_prepared) {
|
||||||
|
|
|
@ -503,4 +503,7 @@ exaDoMigration (ExaMigrationPtr pixmaps, int npixmaps, Bool can_accel);
|
||||||
void
|
void
|
||||||
exaPixmapSave (ScreenPtr pScreen, ExaOffscreenArea *area);
|
exaPixmapSave (ScreenPtr pScreen, ExaOffscreenArea *area);
|
||||||
|
|
||||||
|
Bool
|
||||||
|
exaDamageDestForMigration(PixmapPtr pPix, RegionPtr region);
|
||||||
|
|
||||||
#endif /* EXAPRIV_H */
|
#endif /* EXAPRIV_H */
|
||||||
|
|
Loading…
Reference in New Issue