diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-14 16:16:50 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-14 16:16:50 -0700 |
commit | af09c0ca1fe1687e5d455103fff781caf8dd9e21 (patch) | |
tree | aad2968fb9db41baf23058ed118e6c7ee9ddbfba /src/mga_dga.c | |
parent | e7329f46343ce750e9ee8ae333047a4452d551fc (diff) |
Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)
Already effectively required by use of XNFcallocarray() introduced in
xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015.
Allows dropping remnants of code for XAA and pre-pciaccess X servers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/-/merge_requests/11>
Diffstat (limited to 'src/mga_dga.c')
-rw-r--r-- | src/mga_dga.c | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/mga_dga.c b/src/mga_dga.c index 66e6a09..a78d6ed 100644 --- a/src/mga_dga.c +++ b/src/mga_dga.c @@ -15,12 +15,6 @@ static Bool MGA_OpenFramebuffer(ScrnInfoPtr, char **, unsigned char **, static Bool MGA_SetMode(ScrnInfoPtr, DGAModePtr); static int MGA_GetViewport(ScrnInfoPtr); static void MGA_SetViewport(ScrnInfoPtr, int, int, int); -#ifdef USE_XAA -static void MGA_FillRect(ScrnInfoPtr, int, int, int, int, unsigned long); -static void MGA_BlitRect(ScrnInfoPtr, int, int, int, int, int, int); -static void MGA_BlitTransRect(ScrnInfoPtr, int, int, int, int, int, int, - unsigned long); -#endif static DGAFunctionRec MGA_DGAFuncs = { @@ -30,13 +24,7 @@ DGAFunctionRec MGA_DGAFuncs = { MGA_SetViewport, MGA_GetViewport, MGAStormSync, -#ifdef USE_XAA - MGA_FillRect, - MGA_BlitRect, - MGA_BlitTransRect -#else NULL, NULL, NULL -#endif }; @@ -124,13 +112,6 @@ SECOND_PASS: mode->flags = DGA_CONCURRENT_ACCESS; if(pixmap) mode->flags |= DGA_PIXMAP_AVAILABLE; -#ifdef USE_XAA - if(!pMga->NoAccel) { - mode->flags |= DGA_FILL_RECT | DGA_BLIT_RECT; - if((Bpp != 3) && (pMga->Chipset != PCI_CHIP_MGA2064)) - mode->flags |= DGA_BLIT_RECT_TRANS; - } -#endif if(pMode->Flags & V_DBLSCAN) mode->flags |= DGA_DOUBLESCAN; if(pMode->Flags & V_INTERLACE) @@ -365,74 +346,6 @@ MGA_SetViewport( pMga->DGAViewportStatus = 0; /* MGAAdjustFrame loops until finished */ } -#ifdef USE_XAA -static void -MGA_FillRect ( - ScrnInfoPtr pScrn, - int x, int y, int w, int h, - unsigned long color -){ - MGAPtr pMga = MGAPTR(pScrn); - - if(!pMga->AccelInfoRec) return; - - mgaDoSetupForSolidFill(pScrn, color, GXcopy, ~0, - pMga->CurrentLayout.bitsPerPixel); - (*pMga->AccelInfoRec->SubsequentSolidFillRect)(pScrn, x, y, w, h); - - SET_SYNC_FLAG(pMga->AccelInfoRec); -} - -static void -MGA_BlitRect( - ScrnInfoPtr pScrn, - int srcx, int srcy, - int w, int h, - int dstx, int dsty -){ - MGAPtr pMga = MGAPTR(pScrn); - int xdir = ((srcx < dstx) && (srcy == dsty)) ? -1 : 1; - int ydir = (srcy < dsty) ? -1 : 1; - - if(!pMga->AccelInfoRec) return; - - mgaDoSetupForScreenToScreenCopy( pScrn, xdir, ydir, GXcopy, ~0, -1, - pMga->CurrentLayout.bitsPerPixel ); - - (*pMga->AccelInfoRec->SubsequentScreenToScreenCopy)( - pScrn, srcx, srcy, dstx, dsty, w, h); - - SET_SYNC_FLAG(pMga->AccelInfoRec); -} - - -static void MGA_BlitTransRect( ScrnInfoPtr pScrn, int srcx, int srcy, - int w, int h, int dstx, int dsty, - unsigned long color ) -{ - MGAPtr pMga = MGAPTR(pScrn); - - if( (pMga->AccelInfoRec != NULL) - && (pMga->CurrentLayout.bitsPerPixel != 24) - && (pMga->Chipset != PCI_CHIP_MGA2064) ) { - const int xdir = ((srcx < dstx) && (srcy == dsty)) ? -1 : 1; - const int ydir = (srcy < dsty) ? -1 : 1; - - pMga->DrawTransparent = TRUE; - - mgaDoSetupForScreenToScreenCopy( pScrn, xdir, ydir, GXcopy, ~0, color, - pMga->CurrentLayout.bitsPerPixel ); - - pMga->DrawTransparent = FALSE; - - (*pMga->AccelInfoRec->SubsequentScreenToScreenCopy)( - pScrn, srcx, srcy, dstx, dsty, w, h); - - SET_SYNC_FLAG(pMga->AccelInfoRec); - } -} -#endif - static Bool MGA_OpenFramebuffer( ScrnInfoPtr pScrn, |