summaryrefslogtreecommitdiff
path: root/src/gx_driver.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-27 18:02:54 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-06-11 14:13:32 +0200
commit1bd62d4e151931e41e879ea4cb28b3a6a0600978 (patch)
tree25336c86178b2174b99ea241c7ad994b8287e5d1 /src/gx_driver.c
parent83b14d6e438d7250e1bc018ee0929f5779bf551c (diff)
drop obsolete XAA support
Since recent commits require xserver-1.18.0 or later to build against, there's no reason leaving behind big chunks of code that can only build against the XAA support removed in xserver-1.13.0 (released in 2012). Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Diffstat (limited to 'src/gx_driver.c')
-rw-r--r--src/gx_driver.c60
1 files changed, 2 insertions, 58 deletions
diff --git a/src/gx_driver.c b/src/gx_driver.c
index e858ad3..ca84427 100644
--- a/src/gx_driver.c
+++ b/src/gx_driver.c
@@ -255,50 +255,6 @@ GXAllocateMemory(ScreenPtr pScrn, ScrnInfoPtr pScrni, int rotate)
pExa->offScreenBase = fboffset;
pExa->memorySize = fboffset + fbavail;
}
-
- if (!pGeode->useEXA) {
-
-#if XF86XAA
- if (!xf86FBManagerRunning(pScrn)) {
-
- unsigned int offset = fboffset;
- unsigned int avail = fbavail;
- RegionRec OffscreenRegion;
- BoxRec AvailBox;
-
- /* Assume the shadow FB exists even if it doesn't */
-
- if (pGeode->shadowSize == 0) {
- size = (pScrn->width * bytpp) * pScrni->virtualX;
- offset += size;
- avail -= size;
- }
-
- AvailBox.x1 = 0;
- AvailBox.y1 =
- (offset + pGeode->displayPitch - 1) / pGeode->displayPitch;
-
- AvailBox.x2 = pGeode->displayWidth;
- AvailBox.y2 = (offset + avail) / pGeode->displayPitch;
-
- if (AvailBox.y1 < AvailBox.y2) {
- REGION_INIT(pScrn, &OffscreenRegion, &AvailBox, 2);
-
- if (!xf86InitFBManagerRegion(pScrn, &OffscreenRegion))
- xf86DrvMsg(pScrni->scrnIndex, X_ERROR,
- "Memory manager initialization failed.\n");
-
- REGION_UNINIT(pScrn, &OffscreenRegion);
- }
- else
- xf86DrvMsg(pScrni->scrnIndex, X_INFO,
- "Cache disabled - no offscreen memory available.\n");
- }
- else
- xf86DrvMsg(pScrni->scrnIndex, X_INFO,
- "XAA offscreen memory has already been allocated.\n");
-#endif
- }
}
return ret;
}
@@ -612,14 +568,7 @@ GXPreInit(ScrnInfoPtr pScrni, int flags)
panelgeo = xf86GetOptValString(GeodeOptions, GX_OPTION_PANEL_GEOMETRY);
if ((s = xf86GetOptValString(GeodeOptions, GX_OPTION_ACCEL_METHOD))) {
-#if defined(XF86XAA) && defined(XF86EXA)
- if (!xf86NameCmp(s, "XAA"))
- pGeode->useEXA = FALSE;
- else if (xf86NameCmp(s, "EXA"))
- xf86DrvMsg(pScrni->scrnIndex, X_ERROR,
- "Unknown acceleration method %s. Defaulting to XAA.\n",
- s);
-#elif defined(XF86EXA)
+#if defined(XF86EXA)
pGeode->useEXA = TRUE;
#else
pGeode->useEXA = FALSE;
@@ -628,7 +577,7 @@ GXPreInit(ScrnInfoPtr pScrni, int flags)
xf86DrvMsg(pScrni->scrnIndex, X_INFO,
"Using %s acceleration architecture\n",
- pGeode->useEXA ? "EXA" : "XAA");
+ pGeode->useEXA ? "EXA" : "none");
/* Set up the panel */
@@ -1011,11 +960,6 @@ GXCloseScreen(CLOSE_SCREEN_ARGS_DECL)
if (pScrni->vtSema)
GXLeaveGraphics(pScrni);
-#ifdef XF86XAA
- if (pGeode->AccelInfoRec)
- XAADestroyInfoRec(pGeode->AccelInfoRec);
-#endif
-
if (pGeode->AccelImageWriteBuffers) {
free(pGeode->AccelImageWriteBuffers[0]);
free(pGeode->AccelImageWriteBuffers);