Lines Matching refs:pGlint

151     GLINTPtr pGlint = GLINTPTR(pScrn);
154 pGlint->AccelInfoRec = infoPtr = XAACreateInfoRec();
228 pGlint->XAAScanlineColorExpandBuffers;
229 pGlint->XAAScanlineColorExpandBuffers[0] =
230 pGlint->IOBase + OutputFIFO + 4;
264 AvailFBArea.y2 = pGlint->FbMapSize / (pScrn->displayWidth *
282 GLINTPtr pGlint = GLINTPTR(pScrn);
288 pGlint->ClippingOn = TRUE;
294 GLINTPtr pGlint = GLINTPTR(pScrn);
303 GLINTPtr pGlint = GLINTPTR(pScrn);
306 pGlint->BltScanDirection = 0;
307 if (xdir == 1) pGlint->BltScanDirection |= XPositive;
308 if (ydir == 1) pGlint->BltScanDirection |= YPositive;
319 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
322 GLINT_WRITE_REG(pGlint->pprod|FBRM_SrcEnable, FBReadMode);
324 GLINT_WRITE_REG(pGlint->pprod|FBRM_SrcEnable|FBRM_DstEnable,
335 GLINTPtr pGlint = GLINTPTR(pScrn);
341 GLINT_WRITE_REG(PrimitiveRectangle | pGlint->BltScanDirection, Render);
349 GLINTPtr pGlint = GLINTPTR(pScrn);
352 pGlint->BltScanDirection = 0;
353 if (xdir == 1) pGlint->BltScanDirection |= XPositive;
354 if (ydir == 1) pGlint->BltScanDirection |= YPositive;
361 pGlint->FrameBufferReadMode = pGlint->pprod;
364 pGlint->FrameBufferReadMode = pGlint->pprod |FBRM_SrcEnable;
366 pGlint->FrameBufferReadMode = pGlint->pprod | FBRM_SrcEnable |
377 GLINTPtr pGlint = GLINTPTR(pScrn);
382 if (pGlint->ROP != GXcopy) {
384 GLINT_WRITE_REG(pGlint->FrameBufferReadMode, FBReadMode);
388 align = (x2 & pGlint->bppalign) - (x1 & pGlint->bppalign);
390 GLINT_WRITE_REG(pGlint->FrameBufferReadMode|FBRM_Packed, FBReadMode);
391 Permedia2LoadCoord(pScrn, x2>>pGlint->BppShift, y2,
392 (w+7)>>pGlint->BppShift, h);
394 GLINT_WRITE_REG(((y1-y2)&0x0FFF)<<16 | (((x1 & ~pGlint->bppalign)-(x2 & ~pGlint->bppalign))&0x0FFF), FBSourceDelta);
397 GLINT_WRITE_REG(PrimitiveRectangle | pGlint->BltScanDirection, Render);
412 GLINTPtr pGlint = GLINTPTR(infoRec->pScrn);
414 pGlint->CurrentGC = pGC;
415 pGlint->CurrentDrawable = pDraw;
428 GLINTPtr pGlint = GLINTPTR(infoRec->pScrn);
430 pGlint->CurrentGC = pGC;
431 pGlint->CurrentDrawable = pDraw;
440 GLINTPtr pGlint = GLINTPTR(pScrn);
448 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
450 GLINT_WRITE_REG(pGlint->pprod | FBRM_DstEnable, FBReadMode);
458 GLINTPtr pGlint = GLINTPTR(pScrn);
480 GLINTPtr pGlint = GLINTPTR(pScrn);
504 fbBres(pGlint->CurrentDrawable, pGlint->CurrentGC, 0,
515 GLINTPtr pGlint = GLINTPTR(pScrn);
516 pGlint->ForeGroundColor = color;
523 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
525 GLINT_WRITE_REG(pGlint->pprod | FBRM_DstEnable, FBReadMode);
534 GLINTPtr pGlint = GLINTPTR(pScrn);
543 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
549 GLINT_WRITE_REG(pGlint->pprod|FBRM_DstEnable|FBRM_Packed, FBReadMode);
558 GLINTPtr pGlint = GLINTPTR(pScrn);
568 GLINTPtr pGlint = GLINTPTR(pScrn);
572 if (pGlint->ROP == GXcopy) {
578 Permedia2LoadCoord(pScrn, x>>pGlint->BppShift, y,
579 (w+7)>>pGlint->BppShift, h);
593 GLINTPtr pGlint = GLINTPTR(pScrn);
596 if (bg == -1) pGlint->FrameBufferReadMode = -1;
597 else pGlint->FrameBufferReadMode = 0;
599 pGlint->ForeGroundColor = fg;
600 pGlint->BackGroundColor = bg;
601 REPLICATE(pGlint->ForeGroundColor);
602 REPLICATE(pGlint->BackGroundColor);
616 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
618 GLINT_WRITE_REG(pGlint->pprod | FBRM_DstEnable, FBReadMode);
629 GLINTPtr pGlint = GLINTPTR(pScrn);
632 if (bg == -1) pGlint->FrameBufferReadMode = -1;
633 else pGlint->FrameBufferReadMode = 0;
635 pGlint->ForeGroundColor = fg;
636 pGlint->BackGroundColor = bg;
637 REPLICATE(pGlint->ForeGroundColor);
638 REPLICATE(pGlint->BackGroundColor);
657 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
660 GLINT_WRITE_REG(pGlint->pprod | FBRM_DstEnable, FBReadMode);
672 GLINTPtr pGlint = GLINTPTR(pScrn);
678 if (pGlint->FrameBufferReadMode != -1) {
679 GLINT_WRITE_REG(pGlint->BackGroundColor, ConstantColor);
686 GLINT_WRITE_REG(pGlint->ForeGroundColor, ConstantColor);
698 GLINTPtr pGlint = GLINTPTR(pScrn);
705 if (pGlint->FrameBufferReadMode != -1) {
706 if (pGlint->ROP == GXcopy) {
707 GLINT_WRITE_REG(pGlint->BackGroundColor, FBBlockColor);
713 GLINT_WRITE_REG(pGlint->ForeGroundColor, ConstantColor);
714 GLINT_WRITE_REG(pGlint->BackGroundColor, Texel0);
723 if (pGlint->ROP == GXcopy) {
724 GLINT_WRITE_REG(pGlint->ForeGroundColor, FBBlockColor);
725 pGlint->FrameBufferReadMode = FastFillEnable;
727 GLINT_WRITE_REG(pGlint->ForeGroundColor, ConstantColor);
728 pGlint->FrameBufferReadMode = 0;
731 GLINT_WRITE_REG(AreaStippleEnable | pGlint->FrameBufferReadMode |
744 GLINTPtr pGlint = GLINTPTR(pScrn);
749 pGlint->BackGroundColor = bg;
750 pGlint->ForeGroundColor = fg;
756 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
758 GLINT_WRITE_REG(pGlint->pprod|FBRM_DstEnable, FBReadMode);
760 if ((rop == GXcopy) && (pGlint->BackGroundColor == -1)) {
761 pGlint->FrameBufferReadMode = FastFillEnable;
764 GLINT_WRITE_REG(pGlint->RasterizerSwap,RasterizerMode);
769 pGlint->RasterizerSwap,RasterizerMode);
772 pGlint->FrameBufferReadMode = TextureEnable;
774 pGlint->FrameBufferReadMode = 0;
787 GLINTPtr pGlint = GLINTPTR(pScrn);
791 pGlint->dwords = ((w + 31) >> 5); /* dwords per scanline */
793 pGlint->cpucount = h;
797 GLINT_WRITE_REG(PrimitiveRectangle | XPositive | YPositive | pGlint->FrameBufferReadMode | SyncOnBitMask, Render);
798 GLINT_WRITE_REG(((pGlint->dwords*h)-1)<<16 | 0x0D, OutputFIFO);
799 GLINT_WAIT(pGlint->dwords);
800 pGlint->cpucount--;
807 GLINTPtr pGlint = GLINTPTR(pScrn);
810 if (pGlint->cpucount--)
811 GLINT_WAIT(pGlint->dwords);
827 GLINTPtr pGlint = GLINTPTR(pScrn);
849 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
851 GLINT_WRITE_REG(pGlint->pprod | FBRM_DstEnable, FBReadMode);
856 GLINT_WRITE_REG(pGlint->RasterizerSwap,RasterizerMode);
861 pGlint->RasterizerSwap,RasterizerMode);
896 GLINT_MoveDWORDS((CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
906 GLINT_WRITE_REG(InvertBitMask|pGlint->RasterizerSwap,RasterizerMode);
910 pGlint->RasterizerSwap, RasterizerMode);
917 GLINT_WRITE_REG(pGlint->RasterizerSwap, RasterizerMode);
937 GLINTPtr pGlint = GLINTPTR(pScrn);
946 GLINT_WRITE_REG(pGlint->RasterizerSwap,RasterizerMode);
948 GLINT_WRITE_REG(pGlint->pprod | FBRM_Packed, FBReadMode);
950 GLINT_WRITE_REG(pGlint->pprod | FBRM_DstEnable, FBReadMode);
986 while(count >= pGlint->FIFOSize) {
987 GLINT_WAIT(pGlint->FIFOSize);
989 GLINT_WRITE_REG(((pGlint->FIFOSize - 2) << 16) | (0x11 << 4) |
992 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
993 (CARD32*)srcp, pGlint->FIFOSize - 1);
994 count -= pGlint->FIFOSize - 1;
995 address += pGlint->FIFOSize - 1;
996 srcp += pGlint->FIFOSize - 1;
1004 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1013 char align = (x & pGlint->bppalign);
1020 Permedia2LoadCoord(pScrn, x>>pGlint->BppShift, y,
1021 (w+pGlint->bppalign)>>pGlint->BppShift, h);
1036 while(count >= pGlint->FIFOSize) {
1037 GLINT_WAIT(pGlint->FIFOSize);
1039 GLINT_WRITE_REG(((pGlint->FIFOSize - 2) << 16) | (0x15 << 4) |
1042 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1043 (CARD32*)srcp, pGlint->FIFOSize - 1);
1044 count -= pGlint->FIFOSize - 1;
1045 srcp += pGlint->FIFOSize - 1;
1053 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1062 while(count >= pGlint->FIFOSize) {
1063 GLINT_WAIT(pGlint->FIFOSize);
1065 GLINT_WRITE_REG(((pGlint->FIFOSize - 2) << 16) | (0x15 << 4) |
1068 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1069 (unsigned char *)srcpbyte, pGlint->FIFOSize - 1);
1070 count -= pGlint->FIFOSize - 1;
1071 srcpbyte += pGlint->FIFOSize - 1;
1079 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1104 GLINTPtr pGlint = GLINTPTR(pScrn);
1113 GLINT_WRITE_REG(pGlint->RasterizerSwap,RasterizerMode);
1115 GLINT_WRITE_REG(pGlint->pprod | FBRM_Packed, FBReadMode);
1117 GLINT_WRITE_REG(pGlint->pprod | FBRM_DstEnable, FBReadMode);
1153 while(count >= pGlint->FIFOSize) {
1154 GLINT_WAIT(pGlint->FIFOSize);
1156 GLINT_WRITE_REG(((pGlint->FIFOSize - 2) << 16) | (0x11 << 4) |
1159 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1160 (CARD32*)srcp, pGlint->FIFOSize - 1);
1161 count -= pGlint->FIFOSize - 1;
1162 address += pGlint->FIFOSize - 1;
1163 srcp += pGlint->FIFOSize - 1;
1171 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1180 char align = (x & pGlint->bppalign);
1186 Permedia2LoadCoord(pScrn, x>>pGlint->BppShift, y,
1187 (w+pGlint->bppalign)>>pGlint->BppShift, h);
1202 while(count >= pGlint->FIFOSize) {
1203 GLINT_WAIT(pGlint->FIFOSize);
1205 GLINT_WRITE_REG(((pGlint->FIFOSize - 2) << 16) | (0x15 << 4) |
1208 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1209 (CARD32*)srcp, pGlint->FIFOSize - 1);
1210 count -= pGlint->FIFOSize - 1;
1211 srcp += pGlint->FIFOSize - 1;
1219 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1228 while(count >= pGlint->FIFOSize) {
1229 GLINT_WAIT(pGlint->FIFOSize);
1231 GLINT_WRITE_REG(((pGlint->FIFOSize - 2) << 16) | (0x15 << 4) |
1234 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1235 (unsigned short *)srcpword, pGlint->FIFOSize - 1);
1236 count -= pGlint->FIFOSize - 1;
1237 srcpword += pGlint->FIFOSize - 1;
1245 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1271 GLINTPtr pGlint = GLINTPTR(pScrn);
1278 GLINT_WRITE_REG(pGlint->RasterizerSwap,RasterizerMode);
1280 GLINT_WRITE_REG(pGlint->pprod, FBReadMode);
1282 GLINT_WRITE_REG(pGlint->pprod | FBRM_DstEnable, FBReadMode);
1299 while(count >= pGlint->FIFOSize) {
1300 GLINT_WAIT(pGlint->FIFOSize);
1302 GLINT_WRITE_REG(((pGlint->FIFOSize - 2) << 16) | (0x11 << 4) |
1305 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1306 (CARD32*)srcp, pGlint->FIFOSize - 1);
1307 count -= pGlint->FIFOSize - 1;
1308 address += pGlint->FIFOSize - 1;
1309 srcp += pGlint->FIFOSize - 1;
1317 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1347 while(count >= pGlint->FIFOSize) {
1348 GLINT_WAIT(pGlint->FIFOSize);
1350 GLINT_WRITE_REG(((pGlint->FIFOSize - 2) << 16) | (0x15 << 4) |
1353 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),
1354 (CARD32*)srcp, pGlint->FIFOSize - 1);
1355 count -= pGlint->FIFOSize - 1;
1356 srcp += pGlint->FIFOSize - 1;
1364 (CARD32*)((char*)pGlint->IOBase + OutputFIFO + 4),