diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-18 15:13:17 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-18 15:21:46 -0700 |
commit | cb476dbdef5d75ec16dd1016a17f3f063d7e61a3 (patch) | |
tree | a8cbf41e961a37db6a20ed148349be7adc8b9c96 /src/savage_driver.c | |
parent | b47b0a666b1efde725fefbccc8ea1c0590f72e09 (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-savage/-/merge_requests/11>
Diffstat (limited to 'src/savage_driver.c')
-rw-r--r-- | src/savage_driver.c | 39 |
1 files changed, 6 insertions, 33 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c index 5a7412f..7804528 100644 --- a/src/savage_driver.c +++ b/src/savage_driver.c @@ -61,10 +61,6 @@ #include "savage_bci.h" #include "savage_streams.h" -#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6 -#include "xf86RAC.h" -#endif - #define TRANSPARENCY_KEY 0xff; #ifdef SAVAGEDRI @@ -1278,22 +1274,9 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) if(!psav->NoAccel) { from = X_DEFAULT; -#ifdef HAVE_XAA_H - char *strptr; - if((strptr = (char *)xf86GetOptValString(psav->Options, OPTION_ACCELMETHOD))) { - if(!xf86NameCmp(strptr,"XAA")) { - from = X_CONFIG; - psav->useEXA = FALSE; - } else if(!xf86NameCmp(strptr,"EXA")) { - from = X_CONFIG; - psav->useEXA = TRUE; - } - } -#else psav->useEXA = TRUE; -#endif - xf86DrvMsg(pScrn->scrnIndex, from, "Using %s acceleration architecture\n", - psav->useEXA ? "EXA" : "XAA"); + xf86DrvMsg(pScrn->scrnIndex, from, + "Using %s acceleration architecture\n", "EXA"); } if ((s = xf86GetOptValString(psav->Options, OPTION_OVERLAY))) { @@ -2179,14 +2162,10 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) return FALSE; } } else { - const char *modName = "xaa"; - - if( !xf86LoadSubModule(pScrn, modName) ) { - xf86DrvMsg(pScrn->scrnIndex, X_INFO, - "Falling back to shadowfb\n"); - psav->NoAccel = 1; - psav->shadowFB = 1; - } + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "Falling back to shadowfb\n"); + psav->NoAccel = 1; + psav->shadowFB = 1; } } @@ -4016,12 +3995,6 @@ static Bool SavageCloseScreen(CLOSE_SCREEN_ARGS_DECL) psav->EXADriverPtr = NULL; } -#ifdef HAVE_XAA_H - if( psav->AccelInfoRec ) { - XAADestroyInfoRec( psav->AccelInfoRec ); - psav->AccelInfoRec = NULL; - } -#endif if( psav->DGAModes ) { free( psav->DGAModes ); |