summaryrefslogtreecommitdiff
path: root/src/r128_driver.c
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2018-08-02 10:43:18 -0700
committerKevin Brace <kevinbrace@gmx.com>2018-08-02 10:43:18 -0700
commit370dc01505718dc07d444b4534794d0b988d27ad (patch)
treeaac9f85d1e2c292d64da9bd36be77b8e8c8d4099 /src/r128_driver.c
parent4685a918ff68e4a9e20df31c37028626b96743cb (diff)
Deprecate R128AccelInit
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'src/r128_driver.c')
-rw-r--r--src/r128_driver.c39
1 files changed, 12 insertions, 27 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c
index 6960a19..3023cc1 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -1667,30 +1667,6 @@ Bool R128VerboseInitEXA(ScreenPtr pScreen)
}
#endif
-void
-R128AccelInit(Bool noAccel, ScreenPtr pScreen)
-{
- ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
- R128InfoPtr info = R128PTR(pScrn);
-
- if (!noAccel) {
- if ((!info->useEXA) ||
- ((info->useEXA) && (!info->accelOn))) {
-#ifdef HAVE_XAA_H
- if (R128XAAAccelInit(pScreen)) {
- xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "XAA acceleration enabled.\n");
- }
-#endif
- }
-
- if (!info->accelOn) {
- xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Acceleration disabled.\n");
- }
- }
-}
-
/* Called at the start of each server generation. */
Bool R128ScreenInit(SCREEN_INIT_ARGS_DECL)
{
@@ -1911,9 +1887,18 @@ Bool R128ScreenInit(SCREEN_INIT_ARGS_DECL)
width, height);
}
- R128AccelInit(info->noAccel, pScreen);
- }
- }
+ if (!info->noAccel) {
+ if (R128XAAAccelInit(pScreen)) {
+ info->accelOn = TRUE;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "XAA acceleration enabled.\n");
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Acceleration disabled.\n");
+ }
+ }
+ }
+ }
#ifdef USE_EXA
else {
xf86DrvMsg(pScrn->scrnIndex, X_INFO,