- Timestamp:
- Dec 5, 2019 11:43:34 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r82242 r82409 10 10 * - Log4 for hex dumps of 3D data. 11 11 * - Log5 for info about GMR pages. 12 * - LogRel for the usual important stuff. 13 * - LogRel2 for cursor. 14 * - LogRel3 for 3D performance data. 12 15 */ 13 16 … … 4416 4419 STAM_REL_COUNTER_INC(&pSVGAState->StatR3Cmd3dSurfaceDma); 4417 4420 4421 uint64_t u64NanoTS = 0; 4422 if (LogRelIs3Enabled()) 4423 u64NanoTS = RTTimeNanoTS(); 4418 4424 cCopyBoxes = (pHdr->size - sizeof(*pCmd)) / sizeof(SVGA3dCopyBox); 4419 4425 STAM_PROFILE_START(&pSVGAState->StatR3Cmd3dSurfaceDmaProf, a); … … 4421 4427 cCopyBoxes, (SVGA3dCopyBox *)(pCmd + 1)); 4422 4428 STAM_PROFILE_STOP(&pSVGAState->StatR3Cmd3dSurfaceDmaProf, a); 4429 if (LogRelIs3Enabled()) 4430 { 4431 if (cCopyBoxes) 4432 { 4433 SVGA3dCopyBox *pFirstBox = (SVGA3dCopyBox *)(pCmd + 1); 4434 LogRel3(("VMSVGA: SURFACE_DMA: %d us %d boxes %d,%d %dx%d%s\n", 4435 (RTTimeNanoTS() - u64NanoTS) / 1000ULL, cCopyBoxes, 4436 pFirstBox->x, pFirstBox->y, pFirstBox->w, pFirstBox->h, 4437 pCmd->transfer == SVGA3D_READ_HOST_VRAM ? " readback!!!" : "")); 4438 } 4439 } 4423 4440 break; 4424 4441 } … … 4431 4448 STAM_REL_COUNTER_INC(&pSVGAState->StatR3Cmd3dSurfaceScreen); 4432 4449 4450 uint64_t u64NanoTS = 0; 4451 if (LogRelIs3Enabled()) 4452 u64NanoTS = RTTimeNanoTS(); 4433 4453 cRects = (pHdr->size - sizeof(*pCmd)) / sizeof(SVGASignedRect); 4434 4454 STAM_REL_PROFILE_START(&pSVGAState->StatR3Cmd3dBlitSurfaceToScreenProf, a); … … 4436 4456 pCmd->srcRect, cRects, (SVGASignedRect *)(pCmd + 1)); 4437 4457 STAM_REL_PROFILE_STOP(&pSVGAState->StatR3Cmd3dBlitSurfaceToScreenProf, a); 4458 if (LogRelIs3Enabled()) 4459 { 4460 SVGASignedRect *pFirstRect = cRects ? (SVGASignedRect *)(pCmd + 1) : &pCmd->destRect; 4461 LogRel3(("VMSVGA: SURFACE_TO_SCREEN: %d us %d rects %d,%d %dx%d\n", 4462 (RTTimeNanoTS() - u64NanoTS) / 1000ULL, cRects, 4463 pFirstRect->left, pFirstRect->top, 4464 pFirstRect->right - pFirstRect->left, pFirstRect->bottom - pFirstRect->top)); 4465 } 4438 4466 break; 4439 4467 }
Note:
See TracChangeset
for help on using the changeset viewer.