Lines Matching refs:pGeode
80 ((unsigned char *)pGeode->FBBase + CALC_FBOFFSET(x, y))
324 GeodeRec *pGeode = GEODEPTR(pScrni);
334 gfx2_set_source_stride(pGeode->Pitch);
335 gfx2_set_destination_stride(pGeode->Pitch);
506 GeodeRec *pGeode = GEODEPTR(pScrni);
516 gfx2_set_source_stride(pGeode->Pitch);
517 gfx2_set_destination_stride(pGeode->Pitch);
578 GeodeRec *pGeode = GEODEPTR(pScrni);
592 int n = (h - 1) * pGeode->Pitch;
636 GeodeRec *pGeode = GEODEPTR(pScrni);
649 gfx2_set_source_stride(pGeode->Pitch);
650 gfx2_set_destination_stride(pGeode->Pitch);
705 GeodeRec *pGeode = GEODEPTR(pScrni);
714 offset = pGeode->AccelImageWriteBuffers[bufno] - pGeode->FBBase;
720 pGeode->AccelImageWriteBuffers[bufno],
721 pGeode->Pitch);
729 if ((blt_height = pGeode->NoOfImgBuffers) > giwr.h)
734 offset = pGeode->AccelImageWriteBuffers[0] - pGeode->FBBase;
741 pGeode->AccelImageWriteBuffers[0],
742 pGeode->Pitch);
774 GeodeRec *pGeode = GEODEPTR(pScrni);
780 srcpitch = ((pGeode->Pitch + 31) >> 5) << 2;
786 gfx2_set_destination_stride(pGeode->Pitch);
789 unsigned int stride = (srcpitch << 16) | pGeode->Pitch;
842 GeodeRec *pGeode = GEODEPTR(pScrni);
843 unsigned int src = pGeode->AccelColorExpandBuffers[0] - pGeode->FBBase;
867 GeodeRec *pGeode = GEODEPTR(pScrni);
873 ulong offset = pGeode->AccelColorExpandBuffers[bufno] - pGeode->FBBase;
882 if ((blt_height = pGeode->NoOfImgBuffers) > gc2s.h)
888 srcpitch = ((pGeode->Pitch + 31) >> 5) << 2;
891 pGeode->AccelColorExpandBuffers[0],
901 pGeode->AccelColorExpandBuffers[bufno] - pGeode->FBBase;
914 if ((blt_height = pGeode->NoOfImgBuffers) > gc2s.h)
960 GeodeRec *pGeode = GEODEPTR(pScrni);
965 gfx2_set_source_stride(pGeode->Pitch);
966 gfx2_set_destination_stride(pGeode->Pitch);
1446 GeodeRec *pGeode = GEODEPTR(pScrni);
1457 pGeode->Pitch, w, h, bpp);
1468 SET_SYNC_FLAG(pGeode->AccelInfoRec);
1472 pGeode->WritePixmap(pScrni, x, y, w, h, src, srcwidth, rop, planemask,
1494 GeodeRec *pGeode = GEODEPTR_FROM_PIXMAP(pDst);
1495 char *dst = pGeode->pExa->memoryBase + exaGetPixmapOffset(pDst);
1510 GeodeRec *pGeode = GEODEPTR_FROM_PIXMAP(pSrc);
1511 char *src = pGeode->pExa->memoryBase + exaGetPixmapOffset(pSrc);
1569 GeodeRec *pGeode = GEODEPTR_FROM_PIXMAP(pxDst);
1581 pGeode->cpySrcOffset = exaGetPixmapOffset(pxSrc);
1582 pGeode->cpySrcPitch = exaGetPixmapPitch(pxSrc);
1583 pGeode->cpySrcBpp = (pxSrc->drawable.bitsPerPixel + 7) / 8;
1584 pGeode->cpyDx = dx;
1585 pGeode->cpyDy = dy;
1596 WRITE_GP32(MGP_STRIDE, (pGeode->cpySrcPitch << 16) | dstPitch);
1604 GeodeRec *pGeode = GEODEPTR_FROM_PIXMAP(pxDst);
1608 pGeode->cpySrcOffset + (pGeode->cpySrcPitch * srcY) +
1609 (pGeode->cpySrcBpp * srcX);
1618 if (pGeode->cpyDx < 0) {
1619 srcOffset += w * pGeode->cpySrcBpp - 1;
1623 if (pGeode->cpyDy < 0) {
1624 srcOffset += (h - 1) * pGeode->cpySrcPitch;
1722 GeodeRec *pGeode = GEODEPTR_FROM_PICTURE(pDst);
1728 if (usesPasses(op) && pGeode->exaBfrSz == 0)
1749 GeodeRec *pGeode = GEODEPTR_FROM_PIXMAP(pxDst);
1765 if (usesPasses(op) && srcPitch > pGeode->exaBfrSz)
1767 pGeode->cmpSrcPitch = srcPitch;
1768 pGeode->cmpOp = op;
1769 pGeode->cmpSrcOffset = exaGetPixmapOffset(pxSrc);
1770 pGeode->cmpSrcBpp = (pxSrc->drawable.bitsPerPixel + 7) / 8;
1771 pGeode->cmpSrcFmt = sfp->gx_fmt;
1772 pGeode->cmpDstFmt = dfp->gx_fmt | (dfp->alpha_bits == 0 ?
1786 GeodeRec *pGeode = GEODEPTR_FROM_PIXMAP(pxDst);
1791 op = pGeode->cmpOp;
1795 (width * pGeode->cmpSrcBpp + cacheLineSz - 1) / cacheLineSz;
1797 if (scratchPitch > pGeode->cmpSrcPitch)
1798 scratchPitch = pGeode->cmpSrcPitch;
1799 max_lines = pGeode->exaBfrSz / scratchPitch;
1809 srcBpp = pGeode->cmpSrcBpp;
1810 srcPitch = pGeode->cmpSrcPitch;
1811 srcOffset = pGeode->cmpSrcOffset + srcPitch * srcY + srcBpp * srcX;
1824 dstOfs = pGeode->exaBfrOffset;
1825 rop = pGeode->cmpSrcFmt | MGP_RM_ALPHA_TO_ARGB;
1835 dstOfs = pGeode->exaBfrOffset;
1836 rop = pGeode->cmpSrcFmt | MGP_RM_ALPHA_TO_ARGB;
1847 rop = pGeode->cmpSrcFmt | MGP_RM_ALPHA_TO_ARGB;
1855 srcOfs = pGeode->exaBfrOffset;
1858 rop = pGeode->cmpDstFmt;
1873 rop = pGeode->cmpDstFmt | amd_gx_exa_alpha_ops[op * 2];
1913 GeodeRec *pGeode = GEODEPTR(pScrni);
1916 ExaDriverPtr pExa = pGeode->pExa;
1923 gu2_pitch = pGeode->Pitch;
1925 switch (pGeode->Pitch) {
1941 ACCEL_STRIDE = (pGeode->Pitch << 16) | pGeode->Pitch;
1946 if (pExa && pGeode->useEXA) {
1972 return exaDriverInit(pScrn, pGeode->pExa);
1979 pGeode->AccelInfoRec = localRecPtr = XAACreateInfoRec();
1980 if (!pGeode->AccelInfoRec)
2054 if (pGeode->AccelImageWriteBuffers) {
2056 localRecPtr->ScanlineImageWriteBuffers = pGeode->AccelImageWriteBuffers;
2057 localRecPtr->NumScanlineImageWriteBuffers = pGeode->NoOfImgBuffers;
2070 if (pGeode->AccelColorExpandBuffers) {
2074 pGeode->AccelColorExpandBuffers;
2076 pGeode->NoOfColorExpandLines;
2085 pGeode->WritePixmap = localRecPtr->WritePixmap;