Lines Matching refs:dri
427 if (info->dri->pKernelDRMVersion->version_major < 2) {
433 return drmCommandWriteRead(info->dri->drmFD, DRM_RADEON_GETPARAM, &np, sizeof(np));
438 return drmCommandWriteRead(info->dri->drmFD, DRM_RADEON_INFO, &np2, sizeof(np2));
637 ret = drmCommandWrite(info->dri->drmFD, DRM_RADEON_CP_STOP, &stop,
650 ret = drmCommandWrite(info->dri->drmFD, DRM_RADEON_CP_STOP, &stop,
662 if (drmCommandWrite(info->dri->drmFD, DRM_RADEON_CP_STOP,
707 ret = drmDMA(info->dri->drmFD, &dma);
715 buf = &info->dri->buffers->list[indx];
774 drmCommandWriteRead(info->dri->drmFD, DRM_RADEON_INDIRECT,
826 drmCommandWriteRead(info->dri->drmFD, DRM_RADEON_INDIRECT,
1181 int depthCpp = (info->dri->depthBits - 8) / 4;
1191 info->dri->frontOffset = 0;
1192 info->dri->frontPitch = pScrn->displayWidth;
1193 info->dri->backPitch = pScrn->displayWidth;
1210 info->dri->depthPitch = RADEON_ALIGN(pScrn->displayWidth, 32);
1211 depthSize = RADEON_ALIGN((RADEON_ALIGN(pScrn->virtualY, 16)) * info->dri->depthPitch
1215 "Using %d MB GART aperture\n", info->dri->gartSize);
1217 "Using %d MB for the ring buffer\n", info->dri->ringSize);
1219 "Using %d MB for vertex/indirect buffers\n", info->dri->bufSize);
1221 "Using %d MB for GART textures\n", info->dri->gartTexSize);
1231 if (info->dri->textureSize >= 0) {
1235 / 100 * info->dri->textureSize;
1240 info->dri->textureSize = info->FbMapSize - info->FbSecureSize - 5 * bufferSize - depthSize;
1247 if (info->dri->textureSize < texsizerequest) {
1248 info->dri->textureSize = info->FbMapSize - 4 * bufferSize - depthSize;
1250 if (info->dri->textureSize < texsizerequest) {
1251 info->dri->textureSize = info->FbMapSize - 3 * bufferSize - depthSize;
1258 if (info->dri->textureSize < 0) {
1259 info->dri->textureSize = info->FbMapSize - 2 * bufferSize - depthSize
1268 > info->dri->textureSize) {
1269 info->dri->textureSize =
1274 if (info->dri->noBackBuffer) {
1275 info->dri->textureSize += bufferSize;
1287 if (info->allowColorTiling && !info->dri->noBackBuffer) {
1288 info->dri->textureSize = info->FbMapSize - ((info->FbMapSize - info->dri->textureSize +
1291 if (info->dri->textureSize > 0) {
1292 l = RADEONMinBits((info->dri->textureSize-1) / RADEON_NR_TEX_REGIONS);
1299 info->dri->log2TexGran = l;
1300 info->dri->textureSize = (info->dri->textureSize >> l) << l;
1302 info->dri->textureSize = 0;
1308 if (info->dri->textureSize < 512 * 1024) {
1309 info->dri->textureOffset = 0;
1310 info->dri->textureSize = 0;
1313 if (info->allowColorTiling && !info->dri->noBackBuffer) {
1314 info->dri->textureOffset = ((info->FbMapSize - info->dri->textureSize) /
1319 info->dri->textureOffset = RADEON_ALIGN(info->FbMapSize - info->dri->textureSize,
1326 info->dri->depthOffset = RADEON_ALIGN(info->dri->textureOffset - depthSize,
1330 if (info->dri->noBackBuffer) {
1331 info->dri->backOffset = info->dri->depthOffset;
1333 info->dri->backOffset = RADEON_ALIGN(info->dri->depthOffset - bufferSize,
1337 info->dri->backY = info->dri->backOffset / width_bytes;
1338 info->dri->backX = (info->dri->backOffset - (info->dri->backY * width_bytes)) / cpp;
1389 info->dri->depthTexLines = (scanlines
1390 - info->dri->depthOffset / width_bytes);
1391 info->dri->backLines = (scanlines
1392 - info->dri->backOffset / width_bytes
1393 - info->dri->depthTexLines);
1394 info->dri->backArea = NULL;
1405 info->dri->frontOffset);
1409 info->dri->backOffset);
1412 info->dri->depthOffset);
1416 info->dri->pciGartSize/1024, (unsigned)info->dri->pciGartOffset);
1419 info->dri->textureSize/1024, info->dri->textureOffset);
1421 info->dri->frontPitchOffset = (((info->dri->frontPitch * cpp / 64) << 22) |
1422 ((info->dri->frontOffset + info->fbLocation) >> 10));
1424 info->dri->backPitchOffset = (((info->dri->backPitch * cpp / 64) << 22) |
1425 ((info->dri->backOffset + info->fbLocation) >> 10));
1427 info->dri->depthPitchOffset = (((info->dri->depthPitch * depthCpp / 64) << 22) |
1428 ((info->dri->depthOffset + info->fbLocation) >> 10));