Home
last modified time | relevance | path

Searched refs:pPixmap (Results 1 – 25 of 77) sorted by relevance

1234

/OK3568_Linux_fs/external/xserver/exa/
H A Dexa_migration_mixed.c35 exaCreateDriverPixmap_mixed(PixmapPtr pPixmap) in exaCreateDriverPixmap_mixed() argument
37 ScreenPtr pScreen = pPixmap->drawable.pScreen; in exaCreateDriverPixmap_mixed()
40 ExaPixmapPriv(pPixmap); in exaCreateDriverPixmap_mixed()
41 int w = pPixmap->drawable.width, h = pPixmap->drawable.height; in exaCreateDriverPixmap_mixed()
42 int depth = pPixmap->drawable.depth, bpp = pPixmap->drawable.bitsPerPixel; in exaCreateDriverPixmap_mixed()
43 int usage_hint = pPixmap->usage_hint; in exaCreateDriverPixmap_mixed()
50 if (exaPixmapIsPinned(pPixmap)) in exaCreateDriverPixmap_mixed()
75 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreateDriverPixmap_mixed()
99 PixmapPtr pPixmap = pixmaps[i].pPix; in exaDoMigration_mixed() local
101 ExaPixmapPriv(pPixmap); in exaDoMigration_mixed()
[all …]
H A Dexa_mixed.c52 PixmapPtr pPixmap; in exaCreatePixmap_mixed() local
63 pPixmap = pScreen->CreatePixmap(pScreen, 0, 0, depth, usage_hint); in exaCreatePixmap_mixed()
66 if (!pPixmap) in exaCreatePixmap_mixed()
69 pExaPixmap = ExaGetPixmapPriv(pPixmap); in exaCreatePixmap_mixed()
72 bpp = pPixmap->drawable.bitsPerPixel; in exaCreatePixmap_mixed()
79 pPixmap->devPrivate.ptr = NULL; in exaCreatePixmap_mixed()
90 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_mixed()
94 exaCreateDriverPixmap_mixed(pPixmap); in exaCreatePixmap_mixed()
95 pExaPixmap->use_gpu_copy = exaPixmapHasGpuCopy(pPixmap); in exaCreatePixmap_mixed()
106 pPixmap->drawable.pScreen, in exaCreatePixmap_mixed()
[all …]
H A Dexa_migration_classic.c49 exaMemcpyBox(PixmapPtr pPixmap, BoxPtr pbox, CARD8 *src, int src_pitch, in exaMemcpyBox() argument
52 int i, cpp = pPixmap->drawable.bitsPerPixel / 8; in exaMemcpyBox()
113 PixmapPtr pPixmap = migrate->pPix; in exaCopyDirty() local
115 ExaPixmapPriv(pPixmap); in exaCopyDirty()
142 ExaScreenPriv(pPixmap->drawable.pScreen); in exaCopyDirty()
207 save_pitch = pPixmap->devKind; in exaCopyDirty()
209 pPixmap->devKind = pExaPixmap->fb_pitch; in exaCopyDirty()
214 pBox->x2 = min(pBox->x2, pPixmap->drawable.width); in exaCopyDirty()
215 pBox->y2 = min(pBox->y2, pPixmap->drawable.height); in exaCopyDirty()
220 if (!transfer || !transfer(pPixmap, in exaCopyDirty()
[all …]
H A Dexa_classic.c59 PixmapPtr pPixmap; in exaCreatePixmap_classic() local
70 pPixmap = pScreen->CreatePixmap(pScreen, w, h, depth, usage_hint); in exaCreatePixmap_classic()
73 if (!pPixmap) in exaCreatePixmap_classic()
76 pExaPixmap = ExaGetPixmapPriv(pPixmap); in exaCreatePixmap_classic()
79 bpp = pPixmap->drawable.bitsPerPixel; in exaCreatePixmap_classic()
90 pExaPixmap->sys_ptr = pPixmap->devPrivate.ptr; in exaCreatePixmap_classic()
91 pExaPixmap->sys_pitch = pPixmap->devKind; in exaCreatePixmap_classic()
93 pPixmap->devPrivate.ptr = NULL; in exaCreatePixmap_classic()
102 pScreen->DestroyPixmap(pPixmap); in exaCreatePixmap_classic()
110 pScreen, pPixmap); in exaCreatePixmap_classic()
[all …]
H A Dexa_driver.c53 PixmapPtr pPixmap; in exaCreatePixmap_driver() local
64 pPixmap = pScreen->CreatePixmap(pScreen, 0, 0, depth, usage_hint); in exaCreatePixmap_driver()
67 if (!pPixmap) in exaCreatePixmap_driver()
70 pExaPixmap = ExaGetPixmapPriv(pPixmap); in exaCreatePixmap_driver()
73 bpp = pPixmap->drawable.bitsPerPixel; in exaCreatePixmap_driver()
78 pPixmap->devPrivate.ptr = NULL; in exaCreatePixmap_driver()
104 pScreen->DestroyPixmap(pPixmap); in exaCreatePixmap_driver()
115 (*pScreen->ModifyPixmapHeader) (pPixmap, w, h, 0, 0, paddedWidth, NULL); in exaCreatePixmap_driver()
121 pExaPixmap->use_gpu_copy = exaPixmapHasGpuCopy(pPixmap); in exaCreatePixmap_driver()
125 exaPrepareAccess(&pPixmap->drawable, EXA_PREPARE_AUX_DEST); in exaCreatePixmap_driver()
[all …]
H A Dexa.c126 exaGetDrawableDeltas(DrawablePtr pDrawable, PixmapPtr pPixmap, int *xp, int *yp) in exaGetDrawableDeltas() argument
130 *xp = -pPixmap->screen_x; in exaGetDrawableDeltas()
131 *yp = -pPixmap->screen_y; in exaGetDrawableDeltas()
241 exaPixmapHasGpuCopy(PixmapPtr pPixmap) in exaPixmapHasGpuCopy() argument
243 ScreenPtr pScreen = pPixmap->drawable.pScreen; in exaPixmapHasGpuCopy()
250 return (*pExaScr->pixmap_has_gpu_copy) (pPixmap); in exaPixmapHasGpuCopy()
269 PixmapPtr pPixmap = exaGetDrawablePixmap(pDrawable); in exaGetOffscreenPixmap() local
271 exaGetDrawableDeltas(pDrawable, pPixmap, xp, yp); in exaGetOffscreenPixmap()
273 if (exaPixmapHasGpuCopy(pPixmap)) in exaGetOffscreenPixmap()
274 return pPixmap; in exaGetOffscreenPixmap()
[all …]
H A Dexa_priv.h175 Bool (*pixmap_has_gpu_copy) (PixmapPtr pPixmap);
176 void (*do_move_in_pixmap) (PixmapPtr pPixmap);
177 void (*do_move_out_pixmap) (PixmapPtr pPixmap);
178 void (*prepare_access_reg) (PixmapPtr pPixmap, int index, RegionPtr pReg);
543 ExaDoPrepareAccess(PixmapPtr pPixmap, int index);
552 exaDestroyPixmap(PixmapPtr pPixmap);
559 exaGetDrawableDeltas(DrawablePtr pDrawable, PixmapPtr pPixmap,
597 exaModifyPixmapHeader_classic(PixmapPtr pPixmap, int width, int height,
602 exaDestroyPixmap_classic(PixmapPtr pPixmap);
605 exaPixmapHasGpuCopy_classic(PixmapPtr pPixmap);
[all …]
H A Dexa.h193 Bool (*PrepareSolid) (PixmapPtr pPixmap,
215 void (*Solid) (PixmapPtr pPixmap, int x1, int y1, int x2, int y2);
229 void (*DoneSolid) (PixmapPtr pPixmap);
686 Bool (*ModifyPixmapHeader) (PixmapPtr pPixmap, int width, int height,
697 Bool (*SharePixmapBacking)(PixmapPtr pPixmap, ScreenPtr slave, void **handle_p);
699 Bool (*SetSharedPixmapBacking)(PixmapPtr pPixmap, void *handle);
793 ExaOffscreenMarkUsed(PixmapPtr pPixmap);
803 exaMoveInPixmap(PixmapPtr pPixmap);
806 exaMoveOutPixmap(PixmapPtr pPixmap);
810 exaGetPixmapFirstPixel(PixmapPtr pPixmap);
H A Dexa_accel.c46 PixmapPtr pPixmap = exaGetDrawablePixmap(pDrawable); in exaFillSpans() local
48 ExaPixmapPriv(pPixmap); in exaFillSpans()
68 pixmaps[0].pPix = pPixmap; in exaFillSpans()
74 if (!(pPixmap = exaGetOffscreenPixmap(pDrawable, &off_x, &off_y)) || in exaFillSpans()
75 !(*pExaScr->info->PrepareSolid) (pPixmap, in exaFillSpans()
108 (*pExaScr->info->Solid) (pPixmap, in exaFillSpans()
123 (*pExaScr->info->Solid) (pPixmap, in exaFillSpans()
133 (*pExaScr->info->DoneSolid) (pPixmap); in exaFillSpans()
781 PixmapPtr pPixmap = exaGetDrawablePixmap(pDrawable); in exaPolyFillRect() local
783 ExaPixmapPriv(pPixmap); in exaPolyFillRect()
[all …]
H A Dexa_unaccel.c102 PixmapPtr pPixmap = exaGetDrawablePixmap(pDrawable); in ExaCheckPutImage() local
104 ExaPixmapPriv(pPixmap); in ExaCheckPutImage()
113 pExaScr->prepare_access_reg(pPixmap, EXA_PREPARE_DEST, in ExaCheckPutImage()
134 PixmapPtr pPixmap = exaGetDrawablePixmap(pSrc); in ExaCheckCopyNtoN() local
136 exaGetDrawableDeltas(pSrc, pPixmap, &xoff, &yoff); in ExaCheckCopyNtoN()
138 pExaScr->prepare_access_reg(pPixmap, EXA_PREPARE_SRC, &reg); in ExaCheckCopyNtoN()
148 PixmapPtr pPixmap = exaGetDrawablePixmap(pDst); in ExaCheckCopyNtoN() local
150 exaGetDrawableDeltas(pDst, pPixmap, &xoff, &yoff); in ExaCheckCopyNtoN()
152 pExaScr->prepare_access_reg(pPixmap, EXA_PREPARE_DEST, &reg); in ExaCheckCopyNtoN()
188 PixmapPtr pPixmap = exaGetDrawablePixmap(pDrawable); in ExaFallbackPrepareReg() local
[all …]
/OK3568_Linux_fs/external/xserver/hw/dmx/
H A Ddmxpixmap.c62 dmxBECreatePixmap(PixmapPtr pPixmap) in dmxBECreatePixmap() argument
64 ScreenPtr pScreen = pPixmap->drawable.pScreen; in dmxBECreatePixmap()
66 dmxPixPrivPtr pPixPriv = DMX_GET_PIXMAP_PRIV(pPixmap); in dmxBECreatePixmap()
75 if (pPixmap->drawable.width && pPixmap->drawable.height) { in dmxBECreatePixmap()
78 pPixmap->drawable.width, in dmxBECreatePixmap()
79 pPixmap->drawable.height, in dmxBECreatePixmap()
80 pPixmap->drawable.depth); in dmxBECreatePixmap()
92 PixmapPtr pPixmap; in dmxCreatePixmap() local
99 ret = pScreen->CreatePixmap(pPixmap); in dmxCreatePixmap()
108 pPixmap = AllocatePixmap(pScreen, 0); in dmxCreatePixmap()
[all …]
H A Ddmxpixmap.h53 extern Bool dmxDestroyPixmap(PixmapPtr pPixmap);
54 extern RegionPtr dmxBitmapToRegion(PixmapPtr pPixmap);
56 extern void dmxBECreatePixmap(PixmapPtr pPixmap);
57 extern Bool dmxBEFreePixmap(PixmapPtr pPixmap);
/OK3568_Linux_fs/external/xserver/hw/xnest/
H A DPixmap.c41 PixmapPtr pPixmap; in xnestCreatePixmap() local
43 pPixmap = AllocatePixmap(pScreen, 0); in xnestCreatePixmap()
44 if (!pPixmap) in xnestCreatePixmap()
46 pPixmap->drawable.type = DRAWABLE_PIXMAP; in xnestCreatePixmap()
47 pPixmap->drawable.class = 0; in xnestCreatePixmap()
48 pPixmap->drawable.depth = depth; in xnestCreatePixmap()
49 pPixmap->drawable.bitsPerPixel = depth; in xnestCreatePixmap()
50 pPixmap->drawable.id = 0; in xnestCreatePixmap()
51 pPixmap->drawable.x = 0; in xnestCreatePixmap()
52 pPixmap->drawable.y = 0; in xnestCreatePixmap()
[all …]
H A DXNPixmap.h26 #define xnestPixmapPriv(pPixmap) ((xnestPrivPixmap *) \ argument
27 dixLookupPrivate(&(pPixmap)->devPrivates, xnestPixmapPrivateKey))
29 #define xnestPixmap(pPixmap) (xnestPixmapPriv(pPixmap)->pixmap) argument
31 #define xnestSharePixmap(pPixmap) ((pPixmap)->refcnt++) argument
35 Bool xnestDestroyPixmap(PixmapPtr pPixmap);
36 Bool xnestModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth,
38 RegionPtr xnestPixmapToRegion(PixmapPtr pPixmap);
/OK3568_Linux_fs/external/xserver/mi/
H A Dmiscrinit.c73 miModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth, in miModifyPixmapHeader() argument
76 if (!pPixmap) in miModifyPixmapHeader()
85 pPixmap->drawable.depth = depth; in miModifyPixmapHeader()
86 pPixmap->drawable.bitsPerPixel = bitsPerPixel; in miModifyPixmapHeader()
87 pPixmap->drawable.id = 0; in miModifyPixmapHeader()
88 pPixmap->drawable.x = 0; in miModifyPixmapHeader()
89 pPixmap->drawable.y = 0; in miModifyPixmapHeader()
90 pPixmap->drawable.width = width; in miModifyPixmapHeader()
91 pPixmap->drawable.height = height; in miModifyPixmapHeader()
92 pPixmap->devKind = devKind; in miModifyPixmapHeader()
[all …]
H A Dmiglblt.c89 PixmapPtr pPixmap; in miPolyGlyphBlt() local
115 pPixmap = (*pDrawable->pScreen->CreatePixmap) (pDrawable->pScreen, in miPolyGlyphBlt()
118 if (!pPixmap) in miPolyGlyphBlt()
123 (*pDrawable->pScreen->DestroyPixmap) (pPixmap); in miPolyGlyphBlt()
137 (*pDrawable->pScreen->DestroyPixmap) (pPixmap); in miPolyGlyphBlt()
165 if ((pGCtmp->serialNumber) != (pPixmap->drawable.serialNumber)) in miPolyGlyphBlt()
166 ValidateGC((DrawablePtr) pPixmap, pGCtmp); in miPolyGlyphBlt()
167 (*pGCtmp->ops->PutImage) ((DrawablePtr) pPixmap, pGCtmp, in miPolyGlyphBlt()
168 pPixmap->drawable.depth, in miPolyGlyphBlt()
172 (*pGC->ops->PushPixels) (pGC, pPixmap, pDrawable, in miPolyGlyphBlt()
[all …]
H A Dmibitblt.c376 PixmapPtr pStipple, pPixmap; in miOpqStipDrawable() local
383 pPixmap = (*pDraw->pScreen->CreatePixmap) in miOpqStipDrawable()
385 if (!pPixmap) in miOpqStipDrawable()
391 (*pDraw->pScreen->DestroyPixmap) (pPixmap); in miOpqStipDrawable()
397 ValidateGC((DrawablePtr) pPixmap, pGCT); in miOpqStipDrawable()
398 miClearDrawable((DrawablePtr) pPixmap, pGCT); in miOpqStipDrawable()
416 ValidateGC((DrawablePtr) pPixmap, pGCT); in miOpqStipDrawable()
426 (*pGCT->ops->SetSpans) ((DrawablePtr) pPixmap, pGCT, (char *) pbits, in miOpqStipDrawable()
440 gcv[1].ptr = pPixmap; in miOpqStipDrawable()
463 ValidateGC((DrawablePtr) pPixmap, pGCT); in miOpqStipDrawable()
[all …]
/OK3568_Linux_fs/external/xserver/fb/
H A Dfbpixmap.c35 PixmapPtr pPixmap; in fbCreatePixmap() local
54 pPixmap = AllocatePixmap(pScreen, datasize); in fbCreatePixmap()
55 if (!pPixmap) in fbCreatePixmap()
57 pPixmap->drawable.type = DRAWABLE_PIXMAP; in fbCreatePixmap()
58 pPixmap->drawable.class = 0; in fbCreatePixmap()
59 pPixmap->drawable.pScreen = pScreen; in fbCreatePixmap()
60 pPixmap->drawable.depth = depth; in fbCreatePixmap()
61 pPixmap->drawable.bitsPerPixel = bpp; in fbCreatePixmap()
62 pPixmap->drawable.id = 0; in fbCreatePixmap()
63 pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER; in fbCreatePixmap()
[all …]
H A Dfbwindow.c108 PixmapPtr pPixmap = fbGetWindowPixmap(pWin); in fbCopyWindow() local
109 DrawablePtr pDrawable = &pPixmap->drawable; in fbCopyWindow()
120 if (pPixmap->screen_x || pPixmap->screen_y) in fbCopyWindow()
121 RegionTranslate(&rgnDst, -pPixmap->screen_x, -pPixmap->screen_y); in fbCopyWindow()
134 PixmapPtr pPixmap = *ppPixmap; in fbFixupWindowPixmap() local
136 if (FbEvenTile(pPixmap->drawable.width * pPixmap->drawable.bitsPerPixel)) in fbFixupWindowPixmap()
137 fbPadPixmap(pPixmap); in fbFixupWindowPixmap()
H A Dfboverlay.c54 PixmapPtr pPixmap; in fbOverlayCreateWindow() local
60 pPixmap = pScrPriv->layer[i].u.run.pixmap; in fbOverlayCreateWindow()
61 if (pWin->drawable.depth == pPixmap->drawable.depth) { in fbOverlayCreateWindow()
62 dixSetPrivate(&pWin->devPrivates, fbGetWinPrivateKey(pWin), pPixmap); in fbOverlayCreateWindow()
113 PixmapPtr pPixmap; in fbOverlayCreateScreenResources() local
130 pPixmap = (*pScreen->CreatePixmap) (pScreen, 0, 0, depth, 0); in fbOverlayCreateScreenResources()
131 if (!pPixmap) in fbOverlayCreateScreenResources()
133 if (!(*pScreen->ModifyPixmapHeader) (pPixmap, pScreen->width, in fbOverlayCreateScreenResources()
139 pScrPriv->layer[i].u.run.pixmap = pPixmap; in fbOverlayCreateScreenResources()
198 PixmapPtr pPixmap; in fbOverlayCopyWindow() local
[all …]
/OK3568_Linux_fs/external/xserver/dix/
H A Dpixmap.c57 PixmapPtr pPixmap = pScreen->pScratchPixmap; in GetScratchPixmapHeader() local
59 if (pPixmap) in GetScratchPixmapHeader()
63 pPixmap = (*pScreen->CreatePixmap) (pScreen, 0, 0, depth, 0); in GetScratchPixmapHeader()
65 if (pPixmap) { in GetScratchPixmapHeader()
66 if ((*pScreen->ModifyPixmapHeader) (pPixmap, width, height, depth, in GetScratchPixmapHeader()
68 return pPixmap; in GetScratchPixmapHeader()
69 (*pScreen->DestroyPixmap) (pPixmap); in GetScratchPixmapHeader()
76 FreeScratchPixmapHeader(PixmapPtr pPixmap) in FreeScratchPixmapHeader() argument
78 if (pPixmap) { in FreeScratchPixmapHeader()
79 ScreenPtr pScreen = pPixmap->drawable.pScreen; in FreeScratchPixmapHeader()
[all …]
/OK3568_Linux_fs/external/xserver/miext/shadow/
H A Dshadow.c106 shadowRemove(pScreen, pBuf->pPixmap); in shadowCloseScreen()
108 if (pBuf->pPixmap) in shadowCloseScreen()
109 pScreen->DestroyPixmap(pBuf->pPixmap); in shadowCloseScreen()
141 pBuf->pPixmap = 0; in shadowSetup()
150 shadowAdd(ScreenPtr pScreen, PixmapPtr pPixmap, ShadowUpdateProc update, in shadowAdd() argument
177 pBuf->pPixmap = pPixmap; in shadowAdd()
178 DamageRegister(&pPixmap->drawable, pBuf->pDamage); in shadowAdd()
183 shadowRemove(ScreenPtr pScreen, PixmapPtr pPixmap) in shadowRemove() argument
187 if (pBuf->pPixmap) { in shadowRemove()
193 pBuf->pPixmap = 0; in shadowRemove()
/OK3568_Linux_fs/external/xserver/hw/xfree86/drivers/modesetting/
H A Dexa.c104 rga_prepare_info(PixmapPtr pPixmap, rga_info_t *info, in rga_prepare_info() argument
107 ms_exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap); in rga_prepare_info()
120 info->virAddr = pPixmap->devPrivate.ptr; in rga_prepare_info()
121 pitch = pPixmap->devKind; in rga_prepare_info()
124 format = rga_get_pixmap_format(pPixmap); in rga_prepare_info()
127 if (PIXMAP_IS_YUV(pPixmap)) { in rga_prepare_info()
138 wstride = pitch * 8 / pPixmap->drawable.bitsPerPixel; in rga_prepare_info()
139 hstride = pPixmap->drawable.height; in rga_prepare_info()
149 rga_check_pixmap(PixmapPtr pPixmap) in rga_check_pixmap() argument
151 ms_exa_pixmap_priv *priv = exaGetPixmapDriverPrivate(pPixmap); in rga_check_pixmap()
[all …]
/OK3568_Linux_fs/external/xserver/composite/
H A Dcompwindow.c91 PixmapPtr pPixmap; member
122 (*pScreen->SetWindowPixmap) (pWindow, pVisit->pPixmap); in compSetPixmapVisitWindow()
137 compSetPixmap(WindowPtr pWindow, PixmapPtr pPixmap, int bw) in compSetPixmap() argument
142 visitRec.pPixmap = pPixmap; in compSetPixmap()
170 PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin); in compCheckRedirect() local
173 compRestoreWindow(pWin, pPixmap); in compCheckRedirect()
174 (*pScreen->DestroyPixmap) (pPixmap); in compCheckRedirect()
237 PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin); in compPositionWindow() local
242 if (pPixmap->screen_x != nx || pPixmap->screen_y != ny) { in compPositionWindow()
243 pPixmap->screen_x = nx; in compPositionWindow()
[all …]
H A Dcompalloc.c229 compRestoreWindow(WindowPtr pWin, PixmapPtr pPixmap) in compRestoreWindow() argument
248 (*pGC->ops->CopyArea) (&pPixmap->drawable, in compRestoreWindow()
267 PixmapPtr pPixmap = NULL; in compFreeClientWindow() local
284 pPixmap = (*pScreen->GetWindowPixmap) (pWin); in compFreeClientWindow()
309 if (pPixmap) { in compFreeClientWindow()
310 compRestoreWindow(pWin, pPixmap); in compFreeClientWindow()
311 (*pScreen->DestroyPixmap) (pPixmap); in compFreeClientWindow()
533 PixmapPtr pPixmap; in compNewPixmap() local
535 pPixmap = (*pScreen->CreatePixmap) (pScreen, w, h, pWin->drawable.depth, in compNewPixmap()
538 if (!pPixmap) in compNewPixmap()
[all …]

1234