Changeset 82089 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
- Timestamp:
- Nov 21, 2019 10:18:59 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134896
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r81980 r82089 1548 1548 { 1549 1549 SVGA3dCopyBox clipBox = pBox[i]; 1550 vmsvga ClipCopyBox(&pMipmapLevelSrc->mipmapSize, &pMipmapLevelDest->mipmapSize, &clipBox);1550 vmsvgaR3ClipCopyBox(&pMipmapLevelSrc->mipmapSize, &pMipmapLevelDest->mipmapSize, &clipBox); 1551 1551 if ( !clipBox.w 1552 1552 || !clipBox.h … … 1703 1703 1704 1704 SVGA3dCopyBox clipBox = pBox[i]; 1705 vmsvga ClipCopyBox(&pMipmapLevelSrc->mipmapSize, &pMipmapLevelDest->mipmapSize, &clipBox);1705 vmsvgaR3ClipCopyBox(&pMipmapLevelSrc->mipmapSize, &pMipmapLevelDest->mipmapSize, &clipBox); 1706 1706 if ( !clipBox.w 1707 1707 || !clipBox.h … … 2384 2384 AssertMsgReturn(cBlocksX && cBlocksY, ("Empty box %dx%d\n", pBox->w, pBox->h), VERR_INTERNAL_ERROR); 2385 2385 2386 /* vmsvga GMRTransfer verifies uGuestOffset.2386 /* vmsvgaR3GmrTransfer verifies uGuestOffset. 2387 2387 * srcx(u32GuestBlockX) and srcy(u32GuestBlockY) have been verified in vmsvga3dSurfaceDMA 2388 2388 * to not cause 32 bit overflow when multiplied by cbBlock and cbGuestPitch. … … 2405 2405 Rect.left, Rect.top, Rect.right, Rect.bottom)); 2406 2406 2407 /* Prepare parameters for vmsvga GMRTransfer, which needs the host buffer address, size2407 /* Prepare parameters for vmsvgaR3GmrTransfer, which needs the host buffer address, size 2408 2408 * and offset of the first scanline. 2409 2409 */ … … 2414 2414 uint32_t const offLockedBuf = (uint32_t)((uintptr_t)LockedRect.pBits - (uintptr_t)pu8LockedBuf); 2415 2415 2416 rc = vmsvga GMRTransfer(pThis,2417 transfer,2418 pu8LockedBuf,2419 cbLockedBuf,2420 offLockedBuf,2421 LockedRect.Pitch,2422 GuestPtr,2423 (uint32_t)uGuestOffset,2424 cbGuestPitch,2425 cBlocksX * pSurface->cbBlock,2426 cBlocksY);2416 rc = vmsvgaR3GmrTransfer(pThis, 2417 transfer, 2418 pu8LockedBuf, 2419 cbLockedBuf, 2420 offLockedBuf, 2421 LockedRect.Pitch, 2422 GuestPtr, 2423 (uint32_t)uGuestOffset, 2424 cbGuestPitch, 2425 cBlocksX * pSurface->cbBlock, 2426 cBlocksY); 2427 2427 AssertRC(rc); 2428 2428 … … 2472 2472 Assert(pBox->y == 0 && pBox->h == 1 && pBox->z == 0 && pBox->d == 1); 2473 2473 2474 /* vmsvga GMRTransfer verifies input parameters except for the host buffer addres and size.2474 /* vmsvgaR3GmrTransfer verifies input parameters except for the host buffer addres and size. 2475 2475 * srcx has been verified in vmsvga3dSurfaceDMA to not cause 32 bit overflow when multiplied by cbBlock. 2476 2476 */ … … 2481 2481 2482 2482 /* Copy data between the guest and the host buffer. */ 2483 rc = vmsvga GMRTransfer(pThis,2484 transfer,2485 (uint8_t *)pMipLevel->pSurfaceData,2486 pMipLevel->cbSurface,2487 offHst,2488 pMipLevel->cbSurfacePitch,2489 GuestPtr,2490 offGst,2491 cbGuestPitch,2492 cbWidth,2493 1); /* Buffers are 1-dimensional */2483 rc = vmsvgaR3GmrTransfer(pThis, 2484 transfer, 2485 (uint8_t *)pMipLevel->pSurfaceData, 2486 pMipLevel->cbSurface, 2487 offHst, 2488 pMipLevel->cbSurfacePitch, 2489 GuestPtr, 2490 offGst, 2491 cbGuestPitch, 2492 cbWidth, 2493 1); /* Buffers are 1-dimensional */ 2494 2494 AssertRC(rc); 2495 2495
Note:
See TracChangeset
for help on using the changeset viewer.