Ejemplo n.º 1
0
RegionPtr
glamor_copy_area(DrawablePtr src, DrawablePtr dst, GCPtr gc,
		 int srcx, int srcy, int width, int height, int dstx,
		 int dsty)
{
	RegionPtr region;
	region = miDoCopy(src, dst, gc,
			  srcx, srcy, width, height,
			  dstx, dsty, glamor_copy_n_to_n, 0, NULL);

	return region;
}
Ejemplo n.º 2
0
RegionPtr
exaCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, GCPtr pGC,
            int srcx, int srcy, int width, int height, int dstx, int dsty)
{
    ExaScreenPriv(pDstDrawable->pScreen);

    if (pExaScr->fallback_counter || pExaScr->swappedOut) {
        return ExaCheckCopyArea(pSrcDrawable, pDstDrawable, pGC,
                                srcx, srcy, width, height, dstx, dsty);
    }

    return miDoCopy(pSrcDrawable, pDstDrawable, pGC,
                    srcx, srcy, width, height,
                    dstx, dsty, exaCopyNtoN, 0, NULL);
}
Ejemplo n.º 3
0
RegionPtr
uxa_copy_area(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, GCPtr pGC,
	      int srcx, int srcy, int width, int height, int dstx, int dsty)
{
	uxa_screen_t *uxa_screen = uxa_get_screen(pDstDrawable->pScreen);

	if (uxa_screen->force_fallback) {
		return uxa_check_copy_area(pSrcDrawable, pDstDrawable, pGC,
					   srcx, srcy, width, height, dstx,
					   dsty);
	}

	return miDoCopy(pSrcDrawable, pDstDrawable, pGC,
			srcx, srcy, width, height,
			dstx, dsty, uxa_copy_n_to_n, 0, NULL);
}
Ejemplo n.º 4
0
RegionPtr
saa_copy_area(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, GCPtr pGC,
	      int srcx, int srcy, int width, int height, int dstx, int dsty)
{
    struct saa_screen_priv *sscreen = saa_screen(pDstDrawable->pScreen);

    if (sscreen->fallback_count) {
	return saa_check_copy_area(pSrcDrawable, pDstDrawable, pGC,
				   srcx, srcy, width, height, dstx, dsty);
    }

#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 6)
    return miDoCopy(pSrcDrawable, pDstDrawable, pGC,
		    srcx, srcy, width, height,
		    dstx, dsty, saa_copy_nton, 0, NULL);
#else
    return fbDoCopy(pSrcDrawable, pDstDrawable, pGC,
		    srcx, srcy, width, height,
		    dstx, dsty, saa_copy_nton, 0, NULL);
#endif
}