summaryrefslogtreecommitdiff
path: root/src/atimach64xv.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-05-12 11:58:18 -0700
committerMarge Bot <emma+marge@anholt.net>2024-05-18 19:23:42 +0000
commit16fcf9437fb0dc6ae3aba73a77492f2de0fda991 (patch)
tree0e46c0e8ddf80882698ebb195b4fd8bc95088431 /src/atimach64xv.c
parent9badd018af0b5ab4704cb6e78d344a493c2f25e7 (diff)
Remove XAA support
Mostly done via unifdef -UUSE_XAA, followed by minor manual editing 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: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/-/merge_requests/15>
Diffstat (limited to 'src/atimach64xv.c')
-rw-r--r--src/atimach64xv.c107
1 files changed, 0 insertions, 107 deletions
diff --git a/src/atimach64xv.c b/src/atimach64xv.c
index bb3f486..5288557 100644
--- a/src/atimach64xv.c
+++ b/src/atimach64xv.c
@@ -510,26 +510,6 @@ ATIMach64XVMemFree
ATIPtr pATI
);
-#ifdef USE_XAA
-/*
- * ATIMach64RemoveLinearCallback --
- *
- * This is called by the framebuffer manager to release the offscreen XVideo
- * buffer after the video has been temporarily disabled due to its window being
- * iconified or completely occluded.
- */
-static void
-ATIMach64RemoveLinearCallback
-(
- FBLinearPtr pLinear
-)
-{
- ATIPtr pATI = ATIPTR(xf86ScreenToScrn(pLinear->pScreen));
-
- pATI->pXVBuffer = NULL;
- outf(OVERLAY_SCALE_CNTL, SCALE_EN);
-}
-#endif /* USE_XAA */
/*
* ATIMach64StopVideo --
@@ -554,20 +534,6 @@ ATIMach64StopVideo
REGION_EMPTY(pScreen, &pATI->VideoClip);
-#ifdef USE_XAA
- if (!pATI->useEXA && !Cleanup)
- {
- /*
- * Free offscreen buffer if/when its allocation is needed by XAA's
- * pixmap cache.
- */
- FBLinearPtr linear = (FBLinearPtr)pATI->pXVBuffer;
- if (linear)
- linear->RemoveLinearCallback =
- ATIMach64RemoveLinearCallback;
- return;
- }
-#endif /* USE_XAA */
ATIMach64XVMemFree(pScreen, pATI->pXVBuffer, pATI);
pATI->pXVBuffer = NULL;
@@ -1563,54 +1529,6 @@ ATICloseXVideo
/* Functions for offscreen memory management */
-#ifdef USE_XAA
-static FBLinearPtr
-ATIResizeOffscreenLinear
-(
- ScreenPtr pScreen,
- FBLinearPtr pLinear,
- int Size
-)
-{
- if (Size <= 0)
- {
- xf86FreeOffscreenLinear(pLinear);
- return NULL;
- }
-
- if (pLinear)
- {
- if ((pLinear->size >= Size) ||
- xf86ResizeOffscreenLinear(pLinear, Size))
- {
- pLinear->MoveLinearCallback = NULL;
- pLinear->RemoveLinearCallback = NULL;
- return pLinear;
- }
-
- xf86FreeOffscreenLinear(pLinear);
- }
-
- pLinear = xf86AllocateOffscreenLinear(pScreen, Size, 16, NULL, NULL, NULL);
-
- if (!pLinear)
- {
- int maxSize;
-
- xf86QueryLargestOffscreenLinear(pScreen, &maxSize, 16,
- PRIORITY_EXTREME);
-
- if (maxSize < Size)
- return NULL;
-
- xf86PurgeUnlockedOffscreenAreas(pScreen);
- pLinear =
- xf86AllocateOffscreenLinear(pScreen, Size, 16, NULL, NULL, NULL);
- }
-
- return pLinear;
-}
-#endif /* USE_XAA */
static pointer
ATIMach64XVMemAlloc
@@ -1643,23 +1561,6 @@ ATIMach64XVMemAlloc
}
#endif /* USE_EXA */
-#ifdef USE_XAA
- if (!pATI->useEXA) {
- FBLinearPtr linear = (FBLinearPtr)pVideo;
- int cpp = pATI->AdjustDepth;
-
- /* XAA allocates in units of pixels at the screen bpp, so adjust size
- * appropriately.
- */
- size = (size + cpp - 1) / cpp;
-
- linear = ATIResizeOffscreenLinear(pScreen, linear, size);
- if (linear != NULL) {
- *offset = linear->offset * cpp;
- return linear;
- }
- }
-#endif /* USE_XAA */
*offset = 0;
return NULL;
@@ -1682,13 +1583,5 @@ ATIMach64XVMemFree
}
#endif /* USE_EXA */
-#ifdef USE_XAA
- if (!pATI->useEXA) {
- FBLinearPtr linear = (FBLinearPtr)pVideo;
-
- if (linear != NULL)
- ATIResizeOffscreenLinear(pScreen, linear, 0);
- }
-#endif /* USE_XAA */
}