Lines Matching defs:pScrni

86 GXResetVideo(ScrnInfoPtr pScrni)
97 void GXResetVideo(ScrnInfoPtr pScrni);
113 short drw_h, int id, int offset, ScrnInfoPtr pScrni);
115 extern void GXAccelSync(ScrnInfoPtr pScrni);
169 ScrnInfoPtr pScrni = xf86ScreenToScrn(pScrn);
171 pGeode = GEODEPTR(pScrni);
182 num_adaptors = xf86XVListGenericAdaptors(pScrni, &adaptors);
270 #define GET_PORT_PRIVATE(pScrni) \
271 (GeodePortPrivRec *)((GEODEPTR(pScrni))->adaptor->pPortPrivates[0].ptr)
281 * pScrni :Screen pointer having screen information.
291 GXSetColorkey(ScrnInfoPtr pScrni, GeodePortPrivRec * pPriv)
296 switch (pScrni->depth) {
304 red = (pPriv->colorKey & pScrni->mask.red) >>
305 pScrni->offset.red << (8 - pScrni->weight.red);
306 green = (pPriv->colorKey & pScrni->mask.green) >>
307 pScrni->offset.green << (8 - pScrni->weight.green);
308 blue = (pPriv->colorKey & pScrni->mask.blue) >>
309 pScrni->offset.blue << (8 - pScrni->weight.blue);
316 red = (pPriv->colorKey & pScrni->mask.red) >>
317 (pScrni->offset.red - 1) << (8 - pScrni->weight.red);
318 green = (pPriv->colorKey & pScrni->mask.green) >>
319 (pScrni->offset.green - 1) << (8 - pScrni->weight.green);
320 blue = (pPriv->colorKey & pScrni->mask.blue) >>
321 (pScrni->offset.blue - 1) << (8 - pScrni->weight.blue);
327 REGION_EMPTY(pScrni->pScreen, &pPriv->clip);
337 * pScrni :Screen pointer having screen information.
346 GXResetVideo(ScrnInfoPtr pScrni)
348 GeodeRec *pGeode = GEODEPTR(pScrni);
353 GXAccelSync(pScrni);
354 GXSetColorkey(pScrni, pPriv);
376 ScrnInfoPtr pScrni = xf86ScreenToScrn(pScrn);
377 GeodeRec *pGeode = GEODEPTR(pScrni);
439 GXResetVideo(pScrni);
450 * pScrni :Screen handler pointer having screen information.
461 GXStopVideo(ScrnInfoPtr pScrni, pointer data, Bool exit)
464 GeodeRec *pGeode = GEODEPTR(pScrni);
466 REGION_EMPTY(pScrni->pScreen, &pPriv->clip);
468 GXAccelSync(pScrni);
487 exaOffscreenFree(pScrni->pScreen, pPriv->area);
514 * pScrni :Screen handler pointer having screen information.
525 GXSetPortAttribute(ScrnInfoPtr pScrni,
530 GXAccelSync(pScrni);
533 GXSetColorkey(pScrni, pPriv);
544 GXSetColorkey(pScrni, pPriv);
564 * pScrni :Screen handler pointer having screen information.
575 GXGetPortAttribute(ScrnInfoPtr pScrni,
609 * pScrni :Screen handler pointer having screen information.
621 GXQueryBestSize(ScrnInfoPtr pScrni,
695 ScrnInfoPtr pScrni = xf86ScreenToScrn(pScreen);
696 GeodePortPrivRec *pPriv = GET_PORT_PRIVATE(pScrni);
704 GXAllocateMemory(ScrnInfoPtr pScrni, void **memp, int numlines)
706 ScreenPtr pScrn = xf86ScrnToScreen(pScrni);
707 GeodeRec *pGeode = GEODEPTR(pScrni);
709 //long displayWidth = pGeode->Pitch / ((pScrni->bitsPerPixel + 7) / 8);
720 exaOffscreenFree(pScrni->pScreen, area);
723 area = exaOffscreenAlloc(pScrni->pScreen, size, 16,
756 xf86DrvMsg(pScrni->scrnIndex, X_ERROR,
804 int id, int offset, ScrnInfoPtr pScrni)
806 GeodeRec *pGeode = GEODEPTR(pScrni);
824 DeltaX /= (pScrni->bitsPerPixel >> 3);
895 GXDisplayVideo(ScrnInfoPtr pScrni,
904 GeodeRec *pGeode = GEODEPTR(pScrni);
907 GXAccelSync(pScrni);
970 pGeode->video_scrnptr = pScrni;
981 src_h, drw_w, drw_h, id, offset, pScrni);
1038 GXPutImage(ScrnInfoPtr pScrni,
1048 GeodeRec *pGeode = GEODEPTR(pScrni);
1093 dstBox.x1 -= pScrni->frameX0;
1094 dstBox.x2 -= pScrni->frameX0;
1095 dstBox.y1 -= pScrni->frameY0;
1096 dstBox.y2 -= pScrni->frameY0;
1133 if (!(pPriv->offset = GXAllocateMemory(pScrni, &pPriv->area, new_h))) {
1134 xf86DrvMsg(pScrni->scrnIndex, X_ERROR,
1190 REGION_COPY(pScrni->pScreen, &pPriv->clip, clipBoxes);
1193 xf86XVFillKeyHelper(pScrni->pScreen, pPriv->colorKey, clipBoxes);
1196 GXDisplayVideo(pScrni, id, offset, width, height, dstPitch,
1223 REGION_COPY(pScrni->pScreen, &pPriv->clip, clipBoxes);
1226 XAAFillSolidRects(pScrni, pPriv->colorKey, GXcopy, ~0,
1230 GXDisplayVideo(pScrni, id, offset, width, height, dstPitch,
1257 * pScrni :Screen handler pointer having screen information.
1269 GeodeQueryImageAttributes(ScrnInfoPtr pScrni,
1328 ScrnInfoPtr pScrni = xf86ScreenToScrn(pScrn);
1329 GeodeRec *pGeode = GEODEPTR(pScrni);
1330 GeodePortPrivRec *pPriv = GET_PORT_PRIVATE(pScrni);
1337 GXAccelSync(pScrni);
1391 * pScrni :Screen handler pointer having screen information.
1399 GXAllocateSurface(ScrnInfoPtr pScrni,
1412 fbpitch = pScrni->bitsPerPixel * pScrni->displayWidth >> 3;
1415 if (!(offset = GXAllocateMemory(pScrni, &area, numlines)))
1440 surface->pScrn = pScrni;
1478 GXGetSurfaceAttribute(ScrnInfoPtr pScrni, Atom attribute, INT32 *value)
1480 return GXGetPortAttribute(pScrni, attribute, value,
1481 (pointer) (GET_PORT_PRIVATE(pScrni)));
1485 GXSetSurfaceAttribute(ScrnInfoPtr pScrni, Atom attribute, INT32 value)
1487 return GXSetPortAttribute(pScrni, attribute, value,
1488 (pointer) (GET_PORT_PRIVATE(pScrni)));
1499 ScrnInfoPtr pScrni = surface->pScrn;
1500 GeodePortPrivRec *portPriv = GET_PORT_PRIVATE(pScrni);
1518 dstBox.x1 -= pScrni->frameX0;
1519 dstBox.x2 -= pScrni->frameX0;
1520 dstBox.y1 -= pScrni->frameY0;
1521 dstBox.y2 -= pScrni->frameY0;
1523 xf86XVFillKeyHelper(pScrni->pScreen, portPriv->colorKey, clipBoxes);
1525 GXDisplayVideo(pScrni, surface->id, surface->offsets[0],
1531 REGION_EMPTY(pScrni->pScreen, &portPriv->clip);