[PATCH xf86-video-mga] Remove DownloadFromScreen

Connor Behan connor.behan at gmail.com
Mon Aug 24 10:52:28 PDT 2015


This hook was broken and did the same thing as a software fallback.

Signed-off-by: Connor Behan <connor.behan at gmail.com>
---
 src/mga_exa.c | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/src/mga_exa.c b/src/mga_exa.c
index 69ffa16..a011c91 100644
--- a/src/mga_exa.c
+++ b/src/mga_exa.c
@@ -723,31 +723,6 @@ mgaUploadToScreen(PixmapPtr pDst, int x, int y, int w, int h,
     return TRUE;
 }
 
-static Bool
-mgaDownloadFromScreen(PixmapPtr pSrc, int x, int y, int w, int h,
-                      char *dst, int dst_pitch)
-{
-    PMGA(pSrc);
-
-    char *src = (char *) exaGetPixmapFirstPixel(pSrc);
-    int src_pitch = exaGetPixmapPitch(pSrc);
-
-    int cpp = (pSrc->drawable.bitsPerPixel + 7) / 8;
-    int bytes = w * cpp;
-
-    src += y * src_pitch + x * cpp;
-
-    QUIESCE_DMA(pSrc);
-
-    while (h--) {
-	memcpy (dst, src, bytes);
-	src += src_pitch;
-	dst += dst_pitch;
-    }
-
-    return TRUE;
-}
-
 static void
 mgaWaitMarker(ScreenPtr pScreen, int marker)
 {
@@ -895,7 +870,6 @@ mgaExaInit(ScreenPtr pScreen)
     }
 
     pExa->UploadToScreen = mgaUploadToScreen;
-    pExa->DownloadFromScreen = mgaDownloadFromScreen;
 
 #ifdef MGADRI
     if (pMga->directRenderingEnabled)
-- 
2.5.0



More information about the xorg-devel mailing list