EXA: Don't use UploadToScreen for CopyNtoN with mixed pixmaps.
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
This commit is contained in:
parent
d4fc245115
commit
b8b8db9835
|
@ -503,8 +503,13 @@ exaHWCopyNtoN (DrawablePtr pSrcDrawable,
|
|||
|
||||
(*pExaScr->info->DoneCopy) (pDstPixmap);
|
||||
exaMarkSync (pDstDrawable->pScreen);
|
||||
/* UTS: mainly for SHM PutImage's secondary path. */
|
||||
} else {
|
||||
/* UTS: mainly for SHM PutImage's secondary path.
|
||||
*
|
||||
* Not taking this path for mixed pixmaps: It could only save one CPU
|
||||
* copy between cached memory and risks causing a more expensive
|
||||
* DownloadFromScreen later on.
|
||||
*/
|
||||
} else if (!(pExaScr->info->flags & EXA_MIXED_PIXMAPS)) {
|
||||
int bpp = pSrcDrawable->bitsPerPixel;
|
||||
int src_stride = exaGetPixmapPitch(pSrcPixmap);
|
||||
CARD8 *src = NULL;
|
||||
|
@ -531,7 +536,8 @@ exaHWCopyNtoN (DrawablePtr pSrcDrawable,
|
|||
|
||||
pbox++;
|
||||
}
|
||||
}
|
||||
} else
|
||||
goto fallback;
|
||||
} else
|
||||
goto fallback;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user