mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-24 20:55:49 +00:00
Add CreatePixmap allocation hints.
These hints allow an acceleration architecture to optimize allocation of certain types of pixmaps, such as pixmaps that will serve as backing pixmaps for redirected windows.
This commit is contained in:
parent
3f1b6765aa
commit
f2e310132f
65 changed files with 150 additions and 97 deletions
|
|
@ -969,7 +969,8 @@ miGlyphs (CARD8 op,
|
|||
width = extents.x2 - extents.x1;
|
||||
height = extents.y2 - extents.y1;
|
||||
pMaskPixmap = (*pScreen->CreatePixmap) (pScreen, width, height,
|
||||
maskFormat->depth);
|
||||
maskFormat->depth,
|
||||
CREATE_PIXMAP_USAGE_SCRATCH);
|
||||
if (!pMaskPixmap)
|
||||
return;
|
||||
component_alpha = NeedsComponent(maskFormat->format);
|
||||
|
|
|
|||
|
|
@ -135,8 +135,8 @@ miCompositeRects (CARD8 op,
|
|||
if (!rgbaFormat)
|
||||
goto bail1;
|
||||
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen, 1, 1,
|
||||
rgbaFormat->depth);
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen, 1, 1, rgbaFormat->depth,
|
||||
CREATE_PIXMAP_USAGE_SCRATCH);
|
||||
if (!pPixmap)
|
||||
goto bail2;
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ miCreateAlphaPicture (ScreenPtr pScreen,
|
|||
}
|
||||
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height,
|
||||
pPictFormat->depth);
|
||||
pPictFormat->depth, 0);
|
||||
if (!pPixmap)
|
||||
return 0;
|
||||
pGC = GetScratchGC (pPixmap->drawable.depth, pScreen);
|
||||
|
|
|
|||
|
|
@ -1202,7 +1202,8 @@ ProcRenderAddGlyphs (ClientPtr client)
|
|||
}
|
||||
|
||||
pDstPix = (pScreen->CreatePixmap) (pScreen,
|
||||
width, height, depth);
|
||||
width, height, depth,
|
||||
CREATE_PIMXAP_USAGE_GLYPH_PICTURE);
|
||||
|
||||
GlyphPicture (glyph)[screen] = pDst =
|
||||
CreatePicture (0, &pDstPix->drawable,
|
||||
|
|
@ -1636,7 +1637,8 @@ ProcRenderCreateCursor (ClientPtr client)
|
|||
xfree (mskbits);
|
||||
return (BadImplementation);
|
||||
}
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height, 32);
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height, 32,
|
||||
CREATE_PIXMAP_USAGE_SCRATCH);
|
||||
if (!pPixmap)
|
||||
{
|
||||
xfree (argbbits);
|
||||
|
|
|
|||
Loading…
Reference in a new issue