third_party/virtualbox/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
/**
 * Surface ID based version of vmsvga3dSurfaceTrackUsage.
 *
 * @returns VBox status code.
 * @param   pState              The VMSVGA3d state.
 * @param   pContext            The context.
 * @param   sid                 The surface ID.
 */
Surface ID based version of vmsvga3dSurfaceTrackUsage.
@returns VBox status code.
@param   pState              The VMSVGA3d state.
@param   pContext            The context.
@param   sid                 The surface ID.
Surface ID based version of vmsvga3dSurfaceTrackUsage . @returns VBox status code . @param pState The VMSVGA3d state . @param pContext The context . @param sid The surface ID .
static int vmsvga3dSurfaceTrackUsageById(PVMSVGA3DSTATE pState, PVMSVGA3DCONTEXT pContext, uint32_t sid)
{
    Assert(sid < SVGA3D_MAX_SURFACE_IDS);
    AssertReturn(sid < pState->cSurfaces, VERR_INVALID_PARAMETER);
    PVMSVGA3DSURFACE pSurface = pState->papSurfaces[sid];
    AssertReturn(pSurface && pSurface->id == sid, VERR_INVALID_PARAMETER);
    return vmsvga3dSurfaceTrackUsage(pState, pContext, pSurface);
}
static int vmsvga3dSurfaceTrackUsageById ( PVMSVGA3DSTATE pState , PVMSVGA3DCONTEXT pContext , uint32_t sid ) { Assert ( sid < SVGA3D_MAX_SURFACE_IDS ) ; AssertReturn ( sid < pState -> cSurfaces , VERR_INVALID_PARAMETER ) ; PVMSVGA3DSURFACE pSurface = pState -> papSurfaces [ sid ] ; AssertReturn ( pSurface && pSurface -> id == sid , VERR_INVALID_PARAMETER ) ; return vmsvga3dSurfaceTrackUsage ( pState , pContext , pSurface ) ; }
Surface ID based version of vmsvga3dSurfaceTrackUsage.
Surface ID based version of vmsvga3dSurfaceTrackUsage .