[PATCH xf86-video-r128] Deprecate R128AccelInit

Kevin Brace kevinbrace at gmx.com
Tue Jul 31 05:29:03 UTC 2018


Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/r128_driver.c | 39 ++++++++++++---------------------------
 1 file changed, 12 insertions(+), 27 deletions(-)

diff --git a/src/r128_driver.c b/src/r128_driver.c
index e2de57d..1642ea9 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)
 {
@@ -1912,9 +1888,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,
-- 
2.7.4



More information about the xorg-driver-ati mailing list