Revert "mi: Shortcut miDoCopy/miCopyArea based on clipList"

This reverts commit f665a9c9e6.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Acked-by: Martin Peres <martin.peres@mupuf.org>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1108
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1128
This commit is contained in:
Olivier Fourdan 2021-01-28 17:11:44 +01:00 committed by Olivier Fourdan
parent 3cdac5ba07
commit 5429791b1c
2 changed files with 5 additions and 4 deletions

View File

@ -96,9 +96,9 @@ miCopyArea(DrawablePtr pSrcDrawable,
srcx = xIn + pSrcDrawable->x;
srcy = yIn + pSrcDrawable->y;
/* If the destination is clipped away, this is easy */
/* If the destination isn't realized, this is easy */
if (pDstDrawable->type == DRAWABLE_WINDOW &&
RegionNil(pGC->pCompositeClip))
!((WindowPtr) pDstDrawable)->realized)
return NULL;
/* clip the source */

View File

@ -152,9 +152,10 @@ miDoCopy(DrawablePtr pSrcDrawable,
Bool fastDst = FALSE; /* for fast clipping with one rect dest */
Bool fastExpose = FALSE; /* for fast exposures with pixmap source */
/* Short cut for unmapped or fully clipped windows */
/* Short cut for unmapped windows */
if (pDstDrawable->type == DRAWABLE_WINDOW &&
RegionNil(pGC->pCompositeClip)) {
!((WindowPtr) pDstDrawable)->realized) {
return NULL;
}