| /xsrc/external/mit/xf86-video-apm/dist/src/ |
| H A D | apm_accel.c | 92 (pApm->CurrentLayout.mask32 + 1) << 1, 105 pCache->apmStippleCache.y = draw->box.y1 + ((pCache - pApm->apmCache) + 1) * pApm->CurrentLayout.Scanlines; 125 draw->box.y1*pApm->CurrentLayout.bytesPerScanline) / 4; 164 Scanlines = APMPTR(xf86Screens[(pGC)->pScreen->myNum])->CurrentLayout.Scanlines; 215 pApm->CurrentLayout.bytesPerScanline - 4) * 216 pApm->CurrentLayout.bytesPerScanline; 241 switch (pApm->CurrentLayout.bitsPerPixel) { 325 pXAAinfo->CachePixelGranularity = (pApm->CurrentLayout.mask32 + 1) << 1; 341 pApm->CurrentLayout.Setup_DEC = 0; 342 switch(pApm->CurrentLayout [all...] |
| H A D | apm_dga.c | 243 memcpy(&pApm->CurrentLayout, &pApm->SavedLayout, 244 sizeof pApm->CurrentLayout); 248 pScrn->currentMode = pApm->CurrentLayout.pMode; 258 memcpy(&pApm->SavedLayout, &pApm->CurrentLayout, 259 sizeof pApm->CurrentLayout); 263 pApm->CurrentLayout.displayWidth = pMode->imageWidth; 264 pApm->CurrentLayout.displayHeight = pMode->imageHeight; 265 pApm->CurrentLayout.Scanlines = pMode->imageHeight + 1; 266 pApm->CurrentLayout.depth = pMode->depth; 267 pApm->CurrentLayout [all...] |
| H A D | apm_funcs.c | 26 #define SETSOURCEXY(x,y) do { int off = ((((y) & 0xFFFF) * pApm->CurrentLayout.displayWidth + ((x) & 0x3FFF)) * 3); SETSOURCEOFF(((off & 0xFFF000) << 4) | (off & 0xFFF)); break;} while(1) 27 #define SETDESTXY(x,y) do { int off = ((((y) & 0xFFFF) * pApm->CurrentLayout.displayWidth + ((x) & 0x3FFF)) * 3); SETDESTOFF(((off & 0xFFF000) << 4) | (off & 0xFFF)); break;} while(1) 30 #define UPDATEDEST(x,y) (void)(curr32[0x54 / 4] = ((((y) & 0xFFFF) * pApm->CurrentLayout.displayWidth + ((x) & 0xFFFF)) * 3)) 131 pApm->CurrentLayout.Setup_DEC); 162 SETOFFSET(3*(pApm->CurrentLayout.displayWidth - w)); 164 switch ((((y * pApm->CurrentLayout.displayWidth + x)* 3) / 8) % 3) { 187 SETDEC(DEC_START | DEC_OP_RECT | DEC_DEST_UPD_TRCORNER | pApm->CurrentLayout.Setup_DEC); 220 (pApm->apmTransparency ? DEC_SOURCE_TRANSPARENCY : 0) | pApm->CurrentLayout.Setup_DEC | 242 int i = y1 / pApm->CurrentLayout.Scanlines; 257 w = (pApm->pixelStride * 8) / pApm->CurrentLayout [all...] |
| H A D | apm_driver.c | 1030 pApm->CurrentLayout.displayWidth = pScrn->virtualX; 1031 pApm->CurrentLayout.displayHeight = pScrn->virtualY; 1032 pApm->CurrentLayout.bitsPerPixel = pScrn->bitsPerPixel; 1033 pApm->CurrentLayout.bytesPerScanline= (pApm->CurrentLayout.displayWidth * pApm->CurrentLayout.bitsPerPixel) >> 3; 1034 pApm->CurrentLayout.depth = pScrn->depth; 1035 pApm->CurrentLayout.Scanlines = 2 * (pScrn->videoRam << 10) / pApm->CurrentLayout.bytesPerScanline; 1037 pApm->CurrentLayout [all...] |
| H A D | apm_cursor.c | 119 return APMPTR(xf86ScreenToScrn(pScreen))->CurrentLayout.bitsPerPixel >= 8; 159 if (pApm->CurrentLayout.bitsPerPixel == 8)
|
| /xsrc/external/mit/xf86-video-mga/dist/src/ |
| H A D | mga_dga.c | 316 memcpy(&pMga->CurrentLayout, &SavedLayouts[index], sizeof(MGAFBLayout)); 318 pScrn->currentMode = pMga->CurrentLayout.mode; 324 memcpy(&SavedLayouts[index], &pMga->CurrentLayout, sizeof(MGAFBLayout)); 327 /* update CurrentLayout */ 328 pMga->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel; 329 pMga->CurrentLayout.depth = pMode->depth; 330 pMga->CurrentLayout.displayWidth = pMode->bytesPerScanline / 332 pMga->CurrentLayout.weight.red = BitsSet(pMode->red_mask); 333 pMga->CurrentLayout.weight.green = BitsSet(pMode->green_mask); 334 pMga->CurrentLayout [all...] |
| H A D | mga_storm.c | 594 pMga->ScratchBuffer = malloc(((pScrn->displayWidth * pMga->CurrentLayout.bitsPerPixel) + 127) >> 3); 617 if (pMga->CurrentLayout.bitsPerPixel == 24) { 728 else if ( pMga->CurrentLayout.bitsPerPixel != 24 ) { 734 infoPtr->CacheColorExpandDensity = pMga->CurrentLayout.bitsPerPixel; 800 pMga->MaxFastBlitY = maxFastBlitMem / (pScrn->displayWidth * pMga->CurrentLayout.bitsPerPixel / 8); 809 (pScrn->displayWidth * pMga->CurrentLayout.bitsPerPixel / 8); 813 (pScrn->displayWidth * pMga->CurrentLayout.bitsPerPixel / 8); 984 MGAFBLayout *pLayout = &pMga->CurrentLayout; 1079 MGAFBLayout *pLayout = &pMga->CurrentLayout; 1232 pMga->CurrentLayout [all...] |
| H A D | mga_macros.h | 42 ((y) * pMga->CurrentLayout.displayWidth + (x) + pMga->YDstOrg)
|
| H A D | mga_merge.c | 591 pMga->CurrentLayout.bitsPerPixel = pScrn->bitsPerPixel; 592 pMga->CurrentLayout.depth = pScrn->depth; 593 pMga->CurrentLayout.displayWidth = pScrn->displayWidth; 594 pMga->CurrentLayout.weight.red = pScrn->weight.red; 595 pMga->CurrentLayout.weight.green = pScrn->weight.green; 596 pMga->CurrentLayout.weight.blue = pScrn->weight.blue; 597 pMga->CurrentLayout.mode = pScrn->currentMode;
|
| /xsrc/external/mit/xf86-video-nv/dist/src/ |
| H A D | nv_dga.c | 201 memcpy(&pNv->CurrentLayout, &SavedLayouts[index], sizeof(NVFBLayout)); 203 pScrn->currentMode = pNv->CurrentLayout.mode; 209 memcpy(&SavedLayouts[index], &pNv->CurrentLayout, sizeof(NVFBLayout)); 213 /* update CurrentLayout */ 214 pNv->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel; 215 pNv->CurrentLayout.depth = pMode->depth; 216 pNv->CurrentLayout.displayWidth = pMode->bytesPerScanline / 218 pNv->CurrentLayout.weight.red = BitsSet(pMode->red_mask); 219 pNv->CurrentLayout.weight.green = BitsSet(pMode->green_mask); 220 pNv->CurrentLayout [all...] |
| H A D | riva_dga.c | 193 memcpy(&pRiva->CurrentLayout, &SavedLayouts[index], sizeof(RivaFBLayout)); 195 pScrn->currentMode = pRiva->CurrentLayout.mode; 201 memcpy(&SavedLayouts[index], &pRiva->CurrentLayout, sizeof(RivaFBLayout)); 205 /* update CurrentLayout */ 206 pRiva->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel; 207 pRiva->CurrentLayout.depth = pMode->depth; 208 pRiva->CurrentLayout.displayWidth = pMode->bytesPerScanline / 210 pRiva->CurrentLayout.weight.red = BitsSet(pMode->red_mask); 211 pRiva->CurrentLayout.weight.green = BitsSet(pMode->green_mask); 212 pRiva->CurrentLayout [all...] |
| H A D | nv_xaa.c | 211 pitch = pNv->CurrentLayout.displayWidth * 212 (pNv->CurrentLayout.bitsPerPixel >> 3); 241 switch(pNv->CurrentLayout.depth) { 331 planemask |= ~0 << pNv->CurrentLayout.depth; 367 planemask |= ~0 << pNv->CurrentLayout.depth; 400 planemask = ~0 << pNv->CurrentLayout.depth; 455 CARD32 mask = ~0 << pNv->CurrentLayout.depth; 536 planemask |= ~0 << pNv->CurrentLayout.depth; 555 int Bpp = pNv->CurrentLayout.bitsPerPixel >> 3; 562 _image_dstpitch = pNv->CurrentLayout [all...] |
| H A D | nv_exa.c | 73 planemask |= ~0 << pNv->CurrentLayout.depth; 148 planemask |= ~0 << pNv->CurrentLayout.depth; 321 switch(pNv->CurrentLayout.depth) {
|
| H A D | riva_driver.c | 181 RivaFBLayout *pLayout = &pRiva->CurrentLayout; 801 pRiva->CurrentLayout.bitsPerPixel = pScrn->bitsPerPixel; 802 pRiva->CurrentLayout.depth = pScrn->depth; 803 pRiva->CurrentLayout.displayWidth = pScrn->displayWidth; 804 pRiva->CurrentLayout.weight.red = pScrn->weight.red; 805 pRiva->CurrentLayout.weight.green = pScrn->weight.green; 806 pRiva->CurrentLayout.weight.blue = pScrn->weight.blue; 807 pRiva->CurrentLayout.mode = pScrn->currentMode; 944 pRiva->CurrentLayout.mode = mode;
|
| /xsrc/external/mit/xf86-video-sis/dist/src/ |
| H A D | sis_accel.c | 112 srcaddr = (y1 + h - 1) * pSiS->CurrentLayout.displayWidth; 113 destaddr = (y2 + h - 1) * pSiS->CurrentLayout.displayWidth; 116 srcaddr = y1 * pSiS->CurrentLayout.displayWidth; 117 destaddr = y2 * pSiS->CurrentLayout.displayWidth; 133 srcaddr *= (pSiS->CurrentLayout.bitsPerPixel/8); 134 destaddr *= (pSiS->CurrentLayout.bitsPerPixel/8); 135 if(((pSiS->CurrentLayout.bitsPerPixel / 8) > 1) && (pSiS->Xdirection == -1)) { 136 srcaddr += (pSiS->CurrentLayout.bitsPerPixel/8)-1; 137 destaddr += (pSiS->CurrentLayout.bitsPerPixel/8)-1; 143 sisSETHEIGHTWIDTH(h-1, w * (pSiS->CurrentLayout [all...] |
| H A D | sis_dga.c | 368 memcpy(&pSiS->CurrentLayout, &BackupLayouts[index], sizeof(SISFBLayout)); 371 pScrn->currentMode = pSiS->CurrentLayout.mode; 381 memcpy(&BackupLayouts[index], &pSiS->CurrentLayout, sizeof(SISFBLayout)); 385 pSiS->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel; 386 pSiS->CurrentLayout.depth = pMode->depth; 387 pSiS->CurrentLayout.displayWidth = pMode->bytesPerScanline / (pMode->bitsPerPixel >> 3); 388 pSiS->CurrentLayout.displayHeight = pMode->imageHeight; 394 pSiS->CurrentLayout.DGAViewportX = pSiS->CurrentLayout.DGAViewportY = 0; 419 pSiS->CurrentLayout [all...] |
| H A D | sis_cursor.c | 305 DisplayModePtr mode = pSiS->CurrentLayout.mode; 421 DisplayModePtr mode = pSiS->CurrentLayout.mode; /* pScrn->currentMode; */ 472 DisplayModePtr mode = pSiS->CurrentLayout.mode; 645 DisplayModePtr mode = pSiS->CurrentLayout.mode; 711 if(pSiS->CurrentLayout.mode->Flags & V_DBLSCAN) { 807 if(pSiS->CurrentLayout.mode->Flags & V_DBLSCAN) { 913 DisplayModePtr mode = pSiS->CurrentLayout.mode; 929 DisplayModePtr mode = pSiS->CurrentLayout.mode; 1005 DisplayModePtr mode = pSiS->CurrentLayout.mode; 1057 if((pSiS->CurrentLayout [all...] |
| H A D | sis_vga.c | 241 offset = pSiS->CurrentLayout.displayWidth >> 3; 243 offset = pSiS->CurrentLayout.displayWidth >> 2; 292 switch(pSiS->CurrentLayout.bitsPerPixel) { 297 if(pSiS->CurrentLayout.depth == 15) 321 pSiS->scrnOffset = pSiS->CurrentLayout.displayWidth * 322 ((pSiS->CurrentLayout.bitsPerPixel + 7) / 8); 430 if( (pSiS->CurrentLayout.bitsPerPixel == 24) || 431 (pSiS->CurrentLayout.bitsPerPixel == 32) || 572 if(pSiS->CurrentLayout.bitsPerPixel == 24) { 577 switch(pScrn->virtualX * (pSiS->CurrentLayout [all...] |
| /xsrc/external/mit/xf86-video-s3/dist/src/ |
| H A D | s3_dga.c | 240 memcpy(&pS3->CurrentLayout, &SavedLayouts[indx], 245 pS3->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel; 246 pS3->CurrentLayout.depth = pMode->depth; 247 pS3->CurrentLayout.displayWidth = (pMode->bytesPerScanline / 249 pS3->CurrentLayout.pixel_bytes = pMode->bitsPerPixel / 8; 250 pS3->CurrentLayout.pixel_code = (pMode->bitsPerPixel != 16 ?
|
| /xsrc/external/mit/xf86-video-xgi/dist/src/ |
| H A D | xgi_dga.c | 257 memcpy(&pXGI->CurrentLayout, &BackupLayouts[index], sizeof(XGIFBLayout)); 260 pScrn->currentMode = pXGI->CurrentLayout.mode; 270 memcpy(&BackupLayouts[index], &pXGI->CurrentLayout, sizeof(XGIFBLayout)); 274 pXGI->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel; 275 pXGI->CurrentLayout.depth = pMode->depth; 276 pXGI->CurrentLayout.displayWidth = pMode->bytesPerScanline / (pMode->bitsPerPixel >> 3);
|
| /xsrc/external/mit/xf86-video-r128/dist/src/ |
| H A D | r128_cursor.c | 179 if (info->CurrentLayout.pixel_bytes == 4 || info->CurrentLayout.pixel_bytes == 3) 182 else if (info->CurrentLayout.pixel_bytes == 2) 208 int cpp = info->CurrentLayout.pixel_bytes;
|
| H A D | r128_crtc.c | 73 switch (info->CurrentLayout.pixel_code) { 83 info->CurrentLayout.bitsPerPixel); 147 save->crtc_pitch = info->CurrentLayout.displayWidth / 8; 153 info->CurrentLayout.displayWidth)); 157 switch (info->CurrentLayout.pixel_code) { 181 switch (info->CurrentLayout.pixel_code) { 190 "Unsupported pixel depth (%d)\n", info->CurrentLayout.bitsPerPixel); 242 save->crtc2_pitch = info->CurrentLayout.displayWidth / 8; 248 info->CurrentLayout.displayWidth)); 294 int offset = y * info->CurrentLayout [all...] |
| /xsrc/external/mit/xf86-video-ati/dist/src/ |
| H A D | legacy_crtc.c | 825 int byteshift = info->CurrentLayout.bitsPerPixel >> 4; 827 int tile_addr = (((y >> 3) * info->CurrentLayout.displayWidth + x) >> (8 - byteshift)) << 11; 833 int offset = y * info->CurrentLayout.displayWidth + x; 834 switch (info->CurrentLayout.pixel_code) { 861 pSAREA->frame.x = (Base / info->CurrentLayout.pixel_bytes) 862 % info->CurrentLayout.displayWidth; 863 pSAREA->frame.y = (Base / info->CurrentLayout.pixel_bytes) 864 / info->CurrentLayout.displayWidth; 889 switch (info->CurrentLayout.pixel_code) { 899 info->CurrentLayout [all...] |
| H A D | radeon_legacy_memory.c | 65 int cpp = info->CurrentLayout.bitsPerPixel / 8;
|
| H A D | radeon_accel.c | 380 info->CurrentLayout.pixel_code, 381 info->CurrentLayout.bitsPerPixel); 452 info->CurrentLayout.pixel_code, 453 info->CurrentLayout.bitsPerPixel); 534 switch (info->CurrentLayout.pixel_code) { 543 info->CurrentLayout.depth, 544 info->CurrentLayout.bitsPerPixel, 545 info->CurrentLayout.pixel_code); 1180 int cpp = info->CurrentLayout.pixel_bytes; 1441 int width_bytes = pScrn->displayWidth * info->CurrentLayout [all...] |