mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
dix: Remove usage_hint from pixmaps, store it in ->drawable.class
The class field was unused for pixmaps, and we don't have enough classes to justify a whole uint32 anyway. Reviewed-by: Soren Sandmann <ssp@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
d8caa78200
commit
1564c82417
20 changed files with 39 additions and 45 deletions
|
|
@ -369,13 +369,13 @@ VGAarbiterClearToBackground (
|
|||
}
|
||||
|
||||
static PixmapPtr
|
||||
VGAarbiterCreatePixmap(ScreenPtr pScreen, int w, int h, int depth, unsigned usage_hint)
|
||||
VGAarbiterCreatePixmap(ScreenPtr pScreen, int w, int h, int depth, unsigned class)
|
||||
{
|
||||
PixmapPtr pPix;
|
||||
|
||||
SCREEN_PROLOG ( CreatePixmap);
|
||||
VGAGet(pScreen);
|
||||
pPix = (*pScreen->CreatePixmap) (pScreen, w, h, depth, usage_hint);
|
||||
pPix = (*pScreen->CreatePixmap) (pScreen, w, h, depth, class);
|
||||
VGAPut();
|
||||
SCREEN_EPILOG (CreatePixmap, VGAarbiterCreatePixmap);
|
||||
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ static void VGAarbiterCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg,
|
|||
static void VGAarbiterClearToBackground (WindowPtr pWin, int x, int y, int w,
|
||||
int h, Bool generateExposures);
|
||||
static PixmapPtr VGAarbiterCreatePixmap(ScreenPtr pScreen, int w, int h,
|
||||
int depth, unsigned int usage_hint);
|
||||
int depth, unsigned int class);
|
||||
static Bool VGAarbiterCreateGC(GCPtr pGC);
|
||||
static Bool VGAarbiterSaveScreen(ScreenPtr pScreen, Bool unblank);
|
||||
static void VGAarbiterStoreColors (ColormapPtr pmap, int ndef, xColorItem
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ static void XAAGetImage(DrawablePtr pDrawable, int sx, int sy, int w, int h,
|
|||
static void XAAGetSpans(DrawablePtr pDrawable, int wMax, DDXPointPtr ppt,
|
||||
int *pwidth, int nspans, char *pdstStart);
|
||||
static PixmapPtr XAACreatePixmap(ScreenPtr pScreen, int w, int h, int depth,
|
||||
unsigned usage_hint);
|
||||
unsigned class);
|
||||
static Bool XAADestroyPixmap(PixmapPtr pPixmap);
|
||||
static Bool XAAEnterVT (int index, int flags);
|
||||
static void XAALeaveVT (int index, int flags);
|
||||
|
|
@ -331,7 +331,7 @@ XAAInitializeOffscreenDepths (ScreenPtr pScreen)
|
|||
}
|
||||
|
||||
static PixmapPtr
|
||||
XAACreatePixmap(ScreenPtr pScreen, int w, int h, int depth, unsigned usage_hint)
|
||||
XAACreatePixmap(ScreenPtr pScreen, int w, int h, int depth, unsigned class)
|
||||
{
|
||||
XAAInfoRecPtr infoRec = GET_XAAINFORECPTR_FROM_SCREEN(pScreen);
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
|
|
@ -346,7 +346,7 @@ XAACreatePixmap(ScreenPtr pScreen, int w, int h, int depth, unsigned usage_hint)
|
|||
XAAInitializeOffscreenDepths (pScreen);
|
||||
|
||||
if(pScrn->vtSema &&
|
||||
(usage_hint != CREATE_PIXMAP_USAGE_GLYPH_PICTURE) &&
|
||||
(class != CREATE_PIXMAP_USAGE_GLYPH_PICTURE) &&
|
||||
(infoRec->offscreenDepths & (1 << (depth - 1))) &&
|
||||
(size >= MIN_OFFPIX_SIZE) && !SwitchedOut &&
|
||||
(!infoRec->maxOffPixWidth || (w <= infoRec->maxOffPixWidth)) &&
|
||||
|
|
@ -379,7 +379,7 @@ XAACreatePixmap(ScreenPtr pScreen, int w, int h, int depth, unsigned usage_hint)
|
|||
}
|
||||
|
||||
XAA_SCREEN_PROLOGUE (pScreen, CreatePixmap);
|
||||
pPix = (*pScreen->CreatePixmap) (pScreen, 0, 0, depth, usage_hint);
|
||||
pPix = (*pScreen->CreatePixmap) (pScreen, 0, 0, depth, class);
|
||||
XAA_SCREEN_EPILOGUE (pScreen, CreatePixmap, XAACreatePixmap);
|
||||
|
||||
if (!pPix) {
|
||||
|
|
@ -411,7 +411,7 @@ XAACreatePixmap(ScreenPtr pScreen, int w, int h, int depth, unsigned usage_hint)
|
|||
}
|
||||
BAILOUT:
|
||||
XAA_SCREEN_PROLOGUE (pScreen, CreatePixmap);
|
||||
pPix = (*pScreen->CreatePixmap) (pScreen, w, h, depth, usage_hint);
|
||||
pPix = (*pScreen->CreatePixmap) (pScreen, w, h, depth, class);
|
||||
XAA_SCREEN_EPILOGUE (pScreen, CreatePixmap, XAACreatePixmap);
|
||||
|
||||
if(pPix) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue