summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2007-09-18 13:45:10 -0600
committerJordan Crouse <jordan.crouse@amd.com>2007-10-01 09:15:08 -0600
commitdfe2ab1ea3c1a66952b6d38e436a064d677e5fba (patch)
treef58e443b48c939c032f8a188df6e5d45b1030778
parentb795643e860548eff6f1a458391e56098c490f64 (diff)
[XORG] Remove the upload function for LX
Remove the upload function for LX. The default function is going to be faster for all 0xCC BLTs; which just so happens to be what all the uploads will be.
-rw-r--r--src/amd_lx_exa.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/amd_lx_exa.c b/src/amd_lx_exa.c
index ea21413..b0bb057 100644
--- a/src/amd_lx_exa.c
+++ b/src/amd_lx_exa.c
@@ -962,44 +962,6 @@ static void lx_done(PixmapPtr ptr)
{
}
-static Bool lx_upload(PixmapPtr pDst, int x, int y, int w, int h,
- char *src, int src_pitch)
-{
- char *dst = pDst->devPrivate.ptr;
- int dpitch = exaGetPixmapPitch(pDst);
- int bpp = pDst->drawable.bitsPerPixel;
- GeodeRec *pGeode = GEODEPTR_FROM_PIXMAP(pDst);
- unsigned long offset;
-
- dst += (y * dpitch) + (x * (bpp >> 3));
-
- gp_declare_blt(0);
-
- gp_set_bpp(bpp);
- gp_set_raster_operation(0xCC);
- gp_set_strides(dpitch, src_pitch);
- gp_set_solid_pattern(0);
-
- offset = ((unsigned long) dst) - ((unsigned long) pGeode->FBBase);
- gp_color_bitmap_to_screen_blt(offset, 0, w, h, (unsigned char *)src, src_pitch);
- return TRUE;
-}
-
-static Bool lx_download(PixmapPtr pSrc, int x, int y, int w, int h,
- char *dst, int dst_pitch)
-{
- char *src = pSrc->devPrivate.ptr;
- int spitch = exaGetPixmapPitch(pSrc);
- int bpp = pSrc->drawable.bitsPerPixel;
-
- src += (y * spitch) + (x * (bpp >> 3));
-
- geode_memory_to_screen_blt((unsigned long)src, (unsigned long)dst,
- spitch, dst_pitch, w, h, bpp);
- return TRUE;
-}
-
-
Bool LXExaInit(ScreenPtr pScreen)
{
ScrnInfoPtr pScrni = xf86Screens[pScreen->myNum];
@@ -1011,9 +973,6 @@ Bool LXExaInit(ScreenPtr pScreen)
pExa->WaitMarker = lx_wait_marker;
- pExa->UploadToScreen = lx_upload;
- //pExa->DownloadFromScreen = lx_download;
-
pExa->PrepareSolid = lx_prepare_solid;
pExa->Solid = lx_do_solid;
pExa->DoneSolid = lx_done;