VirtualBox

Ignore:
Timestamp:
Nov 21, 2019 10:18:59 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134896
Message:

DevVGA: Mark functions with R3 where appropriate, adding docs and doing other minor cleaning up. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp

    r81980 r82089  
    15481548        {
    15491549            SVGA3dCopyBox clipBox = pBox[i];
    1550             vmsvgaClipCopyBox(&pMipmapLevelSrc->mipmapSize, &pMipmapLevelDest->mipmapSize, &clipBox);
     1550            vmsvgaR3ClipCopyBox(&pMipmapLevelSrc->mipmapSize, &pMipmapLevelDest->mipmapSize, &clipBox);
    15511551            if (   !clipBox.w
    15521552                || !clipBox.h
     
    17031703
    17041704            SVGA3dCopyBox clipBox = pBox[i];
    1705             vmsvgaClipCopyBox(&pMipmapLevelSrc->mipmapSize, &pMipmapLevelDest->mipmapSize, &clipBox);
     1705            vmsvgaR3ClipCopyBox(&pMipmapLevelSrc->mipmapSize, &pMipmapLevelDest->mipmapSize, &clipBox);
    17061706            if (   !clipBox.w
    17071707                || !clipBox.h
     
    23842384        AssertMsgReturn(cBlocksX && cBlocksY, ("Empty box %dx%d\n", pBox->w, pBox->h), VERR_INTERNAL_ERROR);
    23852385
    2386         /* vmsvgaGMRTransfer verifies uGuestOffset.
     2386        /* vmsvgaR3GmrTransfer verifies uGuestOffset.
    23872387         * srcx(u32GuestBlockX) and srcy(u32GuestBlockY) have been verified in vmsvga3dSurfaceDMA
    23882388         * to not cause 32 bit overflow when multiplied by cbBlock and cbGuestPitch.
     
    24052405                 Rect.left, Rect.top, Rect.right, Rect.bottom));
    24062406
    2407         /* Prepare parameters for vmsvgaGMRTransfer, which needs the host buffer address, size
     2407        /* Prepare parameters for vmsvgaR3GmrTransfer, which needs the host buffer address, size
    24082408         * and offset of the first scanline.
    24092409         */
     
    24142414        uint32_t const offLockedBuf = (uint32_t)((uintptr_t)LockedRect.pBits - (uintptr_t)pu8LockedBuf);
    24152415
    2416         rc = vmsvgaGMRTransfer(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);
    24272427        AssertRC(rc);
    24282428
     
    24722472        Assert(pBox->y == 0 && pBox->h == 1 && pBox->z == 0 && pBox->d == 1);
    24732473
    2474         /* vmsvgaGMRTransfer verifies input parameters except for the host buffer addres and size.
     2474        /* vmsvgaR3GmrTransfer verifies input parameters except for the host buffer addres and size.
    24752475         * srcx has been verified in vmsvga3dSurfaceDMA to not cause 32 bit overflow when multiplied by cbBlock.
    24762476         */
     
    24812481
    24822482        /* Copy data between the guest and the host buffer. */
    2483         rc = vmsvgaGMRTransfer(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 */
    24942494        AssertRC(rc);
    24952495
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette