Lines Matching refs:pSrc
96 PicturePtr pSrc,
116 exaCompositeFallbackPictDesc(pSrc, srcdesc, 40);
252 exaTryDriverSolidFill(PicturePtr pSrc,
283 if (pSrc->pDrawable) {
284 xSrc += pSrc->pDrawable->x;
285 ySrc += pSrc->pDrawable->y;
288 if (!miComputeCompositeRegion (®ion, pSrc, NULL, pDst,
297 if (pSrc->pDrawable) {
298 pSrcPix = exaGetDrawablePixmap (pSrc->pDrawable);
301 pixel = pSrc->pSourcePict->solidFill.color;
304 pSrc->pFormat, pSrc->format) ||
351 PicturePtr pSrc,
366 if (pSrc->pDrawable) {
367 pSrcPix = exaGetDrawablePixmap(pSrc->pDrawable);
391 !(*pExaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
430 pSrcPix = exaGetOffscreenPixmap (pSrc->pDrawable, &src_off_x, &src_off_y);
441 if (!(*pExaScr->info->PrepareComposite) (op, pSrc, pMask, pDst, pSrcPix,
463 xSrc += pSrc->pDrawable->x;
464 ySrc += pSrc->pDrawable->y;
467 if (!miComputeCompositeRegion (®ion, pSrc, pMask, pDst,
517 PicturePtr pSrc,
587 ValidatePicture (pSrc);
592 ret = exaTryDriverCompositeRects(op, pSrc, pMask, pDst, nrect, rects);
597 ((*pExaScr->info->CheckComposite)(PictOpOutReverse, pSrc, pMask,
599 (*pExaScr->info->CheckComposite)(PictOpAdd, pSrc, pMask, pDst)))) {
600 ret = exaTryDriverCompositeRects(PictOpOutReverse, pSrc, pMask,
604 ret = exaTryDriverCompositeRects(op, pSrc, pMask, pDst, nrect,
613 ExaCheckComposite (op, pSrc, pMask, pDst,
636 PicturePtr pSrc,
656 if (pSrc->pDrawable) {
657 pSrcPix = exaGetDrawablePixmap(pSrc->pDrawable);
689 xSrc += pSrc->pDrawable->x;
690 ySrc += pSrc->pDrawable->y;
694 !(*pExaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
699 if (!miComputeCompositeRegion (®ion, pSrc, pMask, pDst,
738 pSrcPix = exaGetOffscreenPixmap (pSrc->pDrawable, &src_off_x, &src_off_y);
759 if (!(*pExaScr->info->PrepareComposite) (op, pSrc, pMask, pDst, pSrcPix,
846 PicturePtr pSrc,
863 (!(*pExaScr->info->CheckComposite)(PictOpOutReverse, pSrc, pMask,
865 !(*pExaScr->info->CheckComposite)(PictOpAdd, pSrc, pMask, pDst)))
874 exaComposite(PictOpOutReverse, pSrc, pMask, pDst, xSrc, ySrc, xMask, yMask,
879 exaComposite(PictOpAdd, pSrc, pMask, pDst, xSrc, ySrc, xMask, yMask,
887 PicturePtr pSrc,
901 Bool saveSrcRepeat = pSrc->repeat;
909 if (pSrc->pDrawable && pSrc->repeat && !pSrc->transform && xSrc >= 0 &&
910 (xSrc + width) <= pSrc->pDrawable->width && ySrc >= 0 &&
911 (ySrc + height) <= pSrc->pDrawable->height)
912 pSrc->repeat = 0;
914 if (!pMask && !pSrc->alphaMap && !pDst->alphaMap &&
915 (op == PictOpSrc || (op == PictOpOver && !PICT_FORMAT_A(pSrc->format))))
917 if (pSrc->pDrawable ?
918 (pSrc->pDrawable->width == 1 && pSrc->pDrawable->height == 1 &&
919 pSrc->repeat) :
920 (pSrc->pSourcePict->type == SourcePictTypeSolidFill))
922 ret = exaTryDriverSolidFill(pSrc, pDst, xSrc, ySrc, xDst, yDst,
926 } else if (pSrc->pDrawable && !pSrc->transform &&
928 (pSrc->format == pDst->format ||
930 PICT_FORMAT_COLOR(pSrc->format) &&
931 pDst->format == PICT_FORMAT(PICT_FORMAT_BPP(pSrc->format),
932 PICT_FORMAT_TYPE(pSrc->format),
934 PICT_FORMAT_R(pSrc->format),
935 PICT_FORMAT_G(pSrc->format),
936 PICT_FORMAT_B(pSrc->format))))) ||
937 (op == PictOpOver && pSrc->format == pDst->format &&
938 !PICT_FORMAT_A(pSrc->format))))
940 if (!pSrc->repeat && xSrc >= 0 && ySrc >= 0 &&
941 (xSrc + width <= pSrc->pDrawable->width) &&
942 (ySrc + height <= pSrc->pDrawable->height))
947 xSrc += pSrc->pDrawable->x;
948 ySrc += pSrc->pDrawable->y;
950 if (!miComputeCompositeRegion (®ion, pSrc, pMask, pDst,
955 ret = exaHWCopyNtoN(pSrc->pDrawable, pDst->pDrawable, NULL,
963 xSrc -= pSrc->pDrawable->x;
964 ySrc -= pSrc->pDrawable->y;
972 if (pSrc->repeat && pSrc->repeatType == RepeatNormal &&
973 pSrc->pDrawable->type == DRAWABLE_PIXMAP)
978 if (pExaScr->info->PrepareComposite && !pSrc->alphaMap &&
981 ret = exaTryDriverComposite(op, pSrc, pMask, pDst, xSrc,
991 xSrc += pSrc->pDrawable->x;
992 ySrc += pSrc->pDrawable->y;
994 if (!miComputeCompositeRegion (®ion, pSrc, pMask, pDst, xSrc,
1005 (PixmapPtr)pSrc->pDrawable,
1016 xSrc -= pSrc->pDrawable->x;
1017 ySrc -= pSrc->pDrawable->y;
1029 !pSrc->alphaMap && (!pMask || !pMask->alphaMap) && !pDst->alphaMap)
1033 ret = exaTryDriverComposite(op, pSrc, pMask, pDst, xSrc, ySrc, xMask,
1041 isSrcSolid = pSrc->pDrawable ?
1042 (pSrc->pDrawable->width == 1 && pSrc->pDrawable->height == 1 &&
1043 pSrc->repeat) :
1044 (pSrc->pSourcePict->type == SourcePictTypeSolidFill);
1052 ret = exaTryMagicTwoPassCompositeHelper(op, pSrc, pMask, pDst,
1063 exaPrintCompositeFallback (op, pSrc, pMask, pDst);
1066 ExaCheckComposite (op, pSrc, pMask, pDst, xSrc, ySrc,
1070 pSrc->repeat = saveSrcRepeat;
1146 exaTrapezoids (CARD8 op, PicturePtr pSrc, PicturePtr pDst,
1182 CompositePicture (op, pSrc, pPicture, pDst,
1193 exaTrapezoids (op, pSrc, pDst, maskFormat, xSrc, ySrc, 1, traps);
1211 exaTriangles (CARD8 op, PicturePtr pSrc, PicturePtr pDst,
1244 CompositePicture (op, pSrc, pPicture, pDst,
1255 exaTriangles (op, pSrc, pDst, maskFormat, xSrc, ySrc, 1, tris);