summaryrefslogtreecommitdiff
path: root/src/mga_dri.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-03-20 19:12:50 +0000
committerAdam Jackson <ajax@nwnk.net>2006-03-20 19:12:50 +0000
commit88ece3c37c4ed529686b6cdea1bf9b6eed8fceea (patch)
treeb77f097e1d11610306339690a8eb40956a4f86dc /src/mga_dri.c
parent089c7be83d6cace94a692ec46a4c3a05b32fd4f4 (diff)
Bug #5587: Refactor mga_storm.c to only build once for all color depths.
(Ian Romanick)
Diffstat (limited to 'src/mga_dri.c')
-rw-r--r--src/mga_dri.c38
1 files changed, 5 insertions, 33 deletions
diff --git a/src/mga_dri.c b/src/mga_dri.c
index 8780160..c235321 100644
--- a/src/mga_dri.c
+++ b/src/mga_dri.c
@@ -80,25 +80,9 @@ static char MGAClientDriverName[] = "mga";
/* DRI buffer management
*/
-extern void Mga8DRIInitBuffers( WindowPtr pWin, RegionPtr prgn,
- CARD32 index );
-extern void Mga8DRIMoveBuffers( WindowPtr pParent, DDXPointRec ptOldOrg,
- RegionPtr prgnSrc, CARD32 index );
-
-extern void Mga16DRIInitBuffers( WindowPtr pWin, RegionPtr prgn,
- CARD32 index );
-extern void Mga16DRIMoveBuffers( WindowPtr pParent, DDXPointRec ptOldOrg,
- RegionPtr prgnSrc, CARD32 index );
-
-extern void Mga24DRIInitBuffers( WindowPtr pWin, RegionPtr prgn,
- CARD32 index );
-extern void Mga24DRIMoveBuffers( WindowPtr pParent, DDXPointRec ptOldOrg,
- RegionPtr prgnSrc, CARD32 index );
-
-extern void Mga32DRIInitBuffers( WindowPtr pWin, RegionPtr prgn,
- CARD32 index );
-extern void Mga32DRIMoveBuffers( WindowPtr pParent, DDXPointRec ptOldOrg,
- RegionPtr prgnSrc, CARD32 index );
+extern void mgaDRIInitBuffers( WindowPtr pWin, RegionPtr prgn, CARD32 index );
+extern void mgaDRIMoveBuffers( WindowPtr pParent, DDXPointRec ptOldOrg,
+ RegionPtr prgnSrc, CARD32 index );
/* Initialize the visual configs that are supported by the hardware.
@@ -1112,20 +1096,8 @@ Bool MGADRIScreenInit( ScreenPtr pScreen )
pDRIInfo->SwapContext = MGADRISwapContext;
}
- switch( pScrn->bitsPerPixel ) {
- case 8:
- pDRIInfo->InitBuffers = Mga8DRIInitBuffers;
- pDRIInfo->MoveBuffers = Mga8DRIMoveBuffers;
- case 16:
- pDRIInfo->InitBuffers = Mga16DRIInitBuffers;
- pDRIInfo->MoveBuffers = Mga16DRIMoveBuffers;
- case 24:
- pDRIInfo->InitBuffers = Mga24DRIInitBuffers;
- pDRIInfo->MoveBuffers = Mga24DRIMoveBuffers;
- case 32:
- pDRIInfo->InitBuffers = Mga32DRIInitBuffers;
- pDRIInfo->MoveBuffers = Mga32DRIMoveBuffers;
- }
+ pDRIInfo->InitBuffers = mgaDRIInitBuffers;
+ pDRIInfo->MoveBuffers = mgaDRIMoveBuffers;
pDRIInfo->bufferRequests = DRI_ALL_WINDOWS;