Lines Matching refs:pATI

82     ATIPtr  pATI = ATIPTR(pScreenInfo);
88 w = (pBox->x2 - pBox->x1) * pATI->AdjustDepth;
90 offset = (pBox->y1 * pATI->FBPitch) + (pBox->x1 * pATI->AdjustDepth);
91 pSrc = (char *)pATI->pShadow + offset;
92 pDst = (char *)pATI->pMemory + offset;
97 pSrc = (char *)pSrc + pATI->FBPitch;
98 pDst = (char *)pDst + pATI->FBPitch;
131 ATIPtr pATI = ATIPTR(pScreenInfo);
143 PixelArea = pScreenInfo->videoRam * 1024 * 8 / pATI->bitsPerPixel;
172 ATIPtr pATI = ATIPTR(pScreenInfo);
174 ATIDRIServerInfoPtr pATIDRIServer = pATI->pDRIServerInfo;
175 int cpp = pATI->bitsPerPixel >> 3;
193 if ( !pATIDRIServer->IsPCI && !pATI->OptionLocalTextures ) {
280 pATI->directRenderingEnabled = FALSE;
286 ScreenArea.x2 = pATI->displayWidth;
308 pATI->depthTexLines = scanlines
310 pATI->backLines = scanlines
312 - pATI->depthTexLines;
313 pATI->depthTexArea = NULL;
314 pATI->backArea = NULL;
354 ATIPtr pATI = ATIPTR(pScreenInfo);
359 if (!ATIEnterGraphics(pScreen, pScreenInfo, pATI))
365 if ((pATI->depth > 8) && (pATI->DAC == ATI_DAC_INTERNAL))
368 VisualMask = miGetDefaultVisualMask(pATI->depth);
370 if (!miSetVisualTypes(pATI->depth, VisualMask, pATI->rgbBits,
377 pFB = pATI->pMemory;
378 pATI->FBPitch = PixmapBytePad(pATI->displayWidth, pATI->depth);
379 if (pATI->OptionShadowFB)
381 pATI->FBBytesPerPixel = pATI->bitsPerPixel >> 3;
382 pATI->FBPitch = PixmapBytePad(pATI->displayWidth, pATI->depth);
383 if ((pATI->pShadow = malloc(pATI->FBPitch * pScreenInfo->virtualY)))
385 pFB = pATI->pShadow;
391 pATI->OptionShadowFB = FALSE;
404 if (pATI->Chip < ATI_CHIP_264GTPRO) {
408 pATI->directRenderingEnabled = FALSE;
414 int cpp = pATI->bitsPerPixel >> 3;
415 int maxY = pScreenInfo->videoRam * 1024 / (pATI->displayWidth * cpp);
421 if (!pATI->OptionAccel) {
424 pATI->directRenderingEnabled = FALSE;
426 pATI->directRenderingEnabled = ATIDRIScreenInit(pScreen);
432 pATI->directRenderingEnabled = FALSE;
439 switch (pATI->bitsPerPixel)
445 pATI->Closeable = fbScreenInit(pScreen, pFB,
447 pScreenInfo->xDpi, pScreenInfo->yDpi, pATI->displayWidth,
448 pATI->bitsPerPixel);
455 if (!pATI->Closeable)
459 if (pATI->depth > 8)
489 if (!pATI->useEXA) {
494 if (pATI->directRenderingEnabled)
508 if (pATI->OptionAccel && !ATIMach64AccelInit(pScreen))
517 if (pATI->useEXA) {
520 if (pATI->OptionAccel && !ATIMach64ExaInit(pScreen))
529 (void)ATIDGAInit(pScreen, pScreenInfo, pATI);
544 if (!xf86HandleColormaps(pScreen, 256, pATI->rgbBits, ATILoadPalette, NULL,
550 if (pATI->OptionShadowFB &&
558 (void)ATIInitializeXVideo(pScreen, pScreenInfo, pATI);
562 pATI->CloseScreen = pScreen->CloseScreen;
570 if (pATI->OptionTvOut && pATI->Chip < ATI_CHIP_264GTPRO)
577 if (pATI->directRenderingEnabled) {
581 pATI->directRenderingEnabled = ATIDRIFinishScreenInit(pScreen);
583 if (pATI->directRenderingEnabled) {
606 ATIPtr pATI = ATIPTR(pScreenInfo);
611 if (pATI->directRenderingEnabled)
614 pATI->directRenderingEnabled = FALSE;
619 ATICloseXVideo(pScreen, pScreenInfo, pATI);
622 if (pATI->pExa)
625 free(pATI->pExa);
626 pATI->pExa = NULL;
630 if (pATI->pXAAInfo)
632 XAADestroyInfoRec(pATI->pXAAInfo);
633 pATI->pXAAInfo = NULL;
636 if (pATI->pCursorInfo)
638 xf86DestroyCursorInfoRec(pATI->pCursorInfo);
639 pATI->pCursorInfo = NULL;
642 pATI->Closeable = FALSE;
643 ATILeaveGraphics(pScreenInfo, pATI);
646 if (!pATI->useEXA)
648 free(pATI->ExpansionBitmapScanlinePtr[1]);
649 pATI->ExpansionBitmapScanlinePtr[0] = NULL;
650 pATI->ExpansionBitmapScanlinePtr[1] = NULL;
654 free(pATI->pShadow);
655 pATI->pShadow = NULL;
658 pScreen->CloseScreen = pATI->CloseScreen;