mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-23 01:29:58 +00:00
exa: s/PixmapIsOffscreen/PixmapHasGpuCopy and s/pExaPixmap->offscreen/pExaPixmap->use_gpu_copy
- Fixup some variable names as well. Signed-off-by: Maarten Maathuis <madman2003@gmail.com> Acked-by: Michel Dänzer <michel@daenzer.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
342f3689d1
commit
a54c23fe64
12 changed files with 96 additions and 94 deletions
|
|
@ -482,9 +482,9 @@ exaHWCopyNtoN (DrawablePtr pSrcDrawable,
|
|||
goto fallback;
|
||||
}
|
||||
|
||||
if (exaPixmapIsOffscreen(pDstPixmap)) {
|
||||
if (exaPixmapHasGpuCopy(pDstPixmap)) {
|
||||
/* Normal blitting. */
|
||||
if (exaPixmapIsOffscreen(pSrcPixmap)) {
|
||||
if (exaPixmapHasGpuCopy(pSrcPixmap)) {
|
||||
if (!(*pExaScr->info->PrepareCopy) (pSrcPixmap, pDstPixmap, reverse ? -1 : 1,
|
||||
upsidedown ? -1 : 1,
|
||||
pGC ? pGC->alu : GXcopy,
|
||||
|
|
@ -840,7 +840,7 @@ exaPolyFillRect(DrawablePtr pDrawable,
|
|||
exaDoMigration (pixmaps, 1, TRUE);
|
||||
}
|
||||
|
||||
if (!exaPixmapIsOffscreen (pPixmap) ||
|
||||
if (!exaPixmapHasGpuCopy (pPixmap) ||
|
||||
!(*pExaScr->info->PrepareSolid) (pPixmap,
|
||||
pGC->alu,
|
||||
pGC->planemask,
|
||||
|
|
@ -1022,7 +1022,7 @@ exaFillRegionSolid (DrawablePtr pDrawable, RegionPtr pRegion, Pixel pixel,
|
|||
exaDoMigration (pixmaps, 1, TRUE);
|
||||
}
|
||||
|
||||
if (exaPixmapIsOffscreen (pPixmap) &&
|
||||
if (exaPixmapHasGpuCopy (pPixmap) &&
|
||||
(*pExaScr->info->PrepareSolid) (pPixmap, alu, planemask, pixel))
|
||||
{
|
||||
int nbox;
|
||||
|
|
@ -1125,7 +1125,7 @@ exaFillRegionTiled (DrawablePtr pDrawable, RegionPtr pRegion, PixmapPtr pTile,
|
|||
|
||||
pPixmap = exaGetOffscreenPixmap (pDrawable, &xoff, &yoff);
|
||||
|
||||
if (!pPixmap || !exaPixmapIsOffscreen(pTile))
|
||||
if (!pPixmap || !exaPixmapHasGpuCopy(pTile))
|
||||
return FALSE;
|
||||
|
||||
if ((*pExaScr->info->PrepareCopy) (pTile, pPixmap, 1, 1, alu, planemask))
|
||||
|
|
|
|||
Loading…
Reference in a new issue