Lines Matching refs:AssertReturn

476     AssertReturn(pThis->svga.p3dState, VERR_NO_MEMORY);
501 AssertReturn(pThis->svga.p3dState, VERR_NO_MEMORY);
509 AssertReturn(pState->pD3D9, VERR_INTERNAL_ERROR);
518 AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR);
521 AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR);
594 AssertReturn(pThis->svga.p3dState, VERR_NO_MEMORY);
615 AssertReturn(pThis->svga.p3dState, VERR_NO_MEMORY);
734 AssertReturn(pState, VERR_NO_MEMORY);
1391 AssertReturn(pState, VERR_NO_MEMORY);
1396 AssertReturn(sid < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
1397 AssertReturn(cMipLevels >= 1, VERR_INVALID_PARAMETER);
1399 AssertReturn(!(surfaceFlags & SVGA3D_SURFACE_CUBEMAP) || cMipLevels == face[0].numMipLevels * 6, VERR_INVALID_PARAMETER);
1400 AssertReturn((surfaceFlags & SVGA3D_SURFACE_CUBEMAP) || cMipLevels == face[0].numMipLevels, VERR_INVALID_PARAMETER);
1407 AssertReturn(pvNew, VERR_NO_MEMORY);
1412 AssertReturn(pSurface, VERR_NO_MEMORY);
1512 AssertReturn(pSurface->pMipmapLevels, VERR_NO_MEMORY);
1582 AssertReturn(pSurface->pMipmapLevels[idx].pSurfaceData, VERR_NO_MEMORY);
1617 AssertReturn(pState, VERR_NO_MEMORY);
1730 AssertReturn(pSharedSurface, NULL);
1734 AssertReturn(ret, NULL);
1763 AssertReturn(sid < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
1764 AssertReturn(sid < pState->cSurfaces && pState->papSurfaces[sid]->id == sid, VERR_INVALID_PARAMETER);
1827 AssertReturn(pState, VERR_NO_MEMORY);
1828 AssertReturn(sidSrc < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
1829 AssertReturn(sidSrc < pState->cSurfaces && pState->papSurfaces[sidSrc]->id == sidSrc, VERR_INVALID_PARAMETER);
1830 AssertReturn(sidDest < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
1831 AssertReturn(sidDest < pState->cSurfaces && pState->papSurfaces[sidDest]->id == sidDest, VERR_INVALID_PARAMETER);
1836 AssertReturn(pSurfaceSrc->faces[0].numMipLevels > src.mipmap, VERR_INVALID_PARAMETER);
1837 AssertReturn(pSurfaceDest->faces[0].numMipLevels > dest.mipmap, VERR_INVALID_PARAMETER);
1894 AssertReturn(pSharedSurface, VERR_INTERNAL_ERROR);
2203 AssertReturn(pState, VERR_NO_MEMORY);
2204 AssertReturn(sidSrc < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
2205 AssertReturn(sidSrc < pState->cSurfaces && pState->papSurfaces[sidSrc]->id == sidSrc, VERR_INVALID_PARAMETER);
2206 AssertReturn(sidDest < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
2207 AssertReturn(sidDest < pState->cSurfaces && pState->papSurfaces[sidDest]->id == sidDest, VERR_INVALID_PARAMETER);
2211 AssertReturn(pSurfaceSrc->faces[0].numMipLevels > src.mipmap, VERR_INVALID_PARAMETER);
2212 AssertReturn(pSurfaceDest->faces[0].numMipLevels > dest.mipmap, VERR_INVALID_PARAMETER);
2330 AssertReturn(pState, VERR_NO_MEMORY);
2331 AssertReturn(sid < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
2332 AssertReturn(sid < pState->cSurfaces && pState->papSurfaces[sid]->id == sid, VERR_INVALID_PARAMETER);
2335 AssertReturn(pSurface->faces[0].numMipLevels > host.mipmap, VERR_INVALID_PARAMETER);
2345 AssertReturn(pSurface->pMipmapLevels[host.mipmap].pSurfaceData, VERR_INTERNAL_ERROR);
2373 AssertReturn(uDestOffset + pBoxes[i].w * pSurface->cbBlock * pBoxes[i].h * pBoxes[i].d <= pMipLevel->cbSurface, VERR_INTERNAL_ERROR);
2574 AssertReturn(uDestOffset + pBoxes[i].w * pSurface->cbBlock + (pBoxes[i].h - 1) * pSurface->pMipmapLevels[host.mipmap].cbSurfacePitch <= pSurface->pMipmapLevels[host.mipmap].cbSurface, VERR_INTERNAL_ERROR);
2625 AssertReturn(dest == 0, VERR_INTERNAL_ERROR);
2626 AssertReturn(src.mipmap == 0 && src.face == 0, VERR_INVALID_PARAMETER);
2628 AssertReturn(destRect.right - destRect.left == srcRect.right - srcRect.left && destRect.bottom - destRect.top == srcRect.bottom - srcRect.top, VERR_INVALID_PARAMETER);
2695 AssertReturn(sid < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
2696 AssertReturn(sid < pState->cSurfaces && pState->papSurfaces[sid]->id == sid, VERR_INVALID_PARAMETER);
2737 AssertReturn(pState, VERR_NO_MEMORY);
2738 AssertReturn(sid < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
2739 AssertReturn(sid < pState->cSurfaces && pState->papSurfaces[sid]->id == sid, VERR_INVALID_PARAMETER);
2742 AssertReturn(pSurface->idAssociatedContext != SVGA3D_INVALID_ID, VERR_INTERNAL_ERROR);
2801 AssertReturn(pState, VERR_NO_MEMORY);
2802 AssertReturn(sid < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
2803 AssertReturn(sid < pState->cSurfaces && pState->papSurfaces[sid]->id == sid, VERR_INVALID_PARAMETER);
2806 AssertReturn(pSurface->idAssociatedContext != SVGA3D_INVALID_ID, VERR_INTERNAL_ERROR);
2928 AssertReturn(pState, VERR_NO_MEMORY);
2929 AssertReturn(cid < SVGA3D_MAX_CONTEXT_IDS, VERR_INVALID_PARAMETER);
2938 AssertReturn(pvNew, VERR_NO_MEMORY);
2943 AssertReturn(pContext, VERR_NO_MEMORY);
2967 AssertReturn(pThis->svga.u64HostWindowId, VERR_INTERNAL_ERROR);
3044 AssertReturn(pState, VERR_NO_MEMORY);
3046 AssertReturn(cid < SVGA3D_MAX_CONTEXT_IDS, VERR_INVALID_PARAMETER);
3075 AssertReturn(pMipLevelSize, VERR_NO_MEMORY);
3186 AssertReturn(pState, VERR_NO_MEMORY);
3218 AssertReturn(pMipmapLevel->pSurfaceData, VERR_NO_MEMORY);
3438 AssertReturn(pState, VERR_NO_MEMORY);
3520 AssertReturn(pState, VERR_NO_MEMORY);
3596 AssertReturn(pState, VERR_NO_MEMORY);
4269 AssertReturn(pState, VERR_NO_MEMORY);
4270 AssertReturn(type < SVGA3D_RT_MAX, VERR_INVALID_PARAMETER);
4271 AssertReturn(target.face == 0, VERR_INVALID_PARAMETER);
4272 AssertReturn(target.mipmap == 0, VERR_INVALID_PARAMETER);
4343 AssertReturn(target.sid < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
4344 AssertReturn(target.sid < pState->cSurfaces && pState->papSurfaces[target.sid]->id == target.sid, VERR_INVALID_PARAMETER);
4437 AssertReturn(pRenderTarget->u.pSurface, VERR_INVALID_PARAMETER);
4494 AssertReturn(pSharedSurface, VERR_INTERNAL_ERROR);
4537 AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR);
4542 AssertReturn(pRenderTarget->fUsageD3D & D3DUSAGE_RENDERTARGET, VERR_INVALID_PARAMETER);
4548 AssertReturn(pRenderTarget->u.pSurface, VERR_INVALID_PARAMETER);
4698 AssertReturn(pState, VERR_NO_MEMORY);
4830 AssertReturn(sid < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
4831 AssertReturn(sid < pState->cSurfaces && pState->papSurfaces[sid]->id == sid, VERR_INVALID_PARAMETER);
4856 AssertReturn(pSharedSurface, VERR_INTERNAL_ERROR);
4967 AssertReturn(pState, VERR_NO_MEMORY);
4979 AssertReturn(face < SVGA3D_FACE_MAX, VERR_INVALID_PARAMETER);
5022 AssertReturn(pState, VERR_NO_MEMORY);
5100 AssertReturn(pState, VERR_NO_MEMORY);
5130 AssertReturn(pState, VERR_NO_MEMORY);
5165 AssertReturn(pState, VERR_NO_MEMORY);
5168 AssertReturn(index < SVGA3D_CLIPPLANE_MAX, VERR_INVALID_PARAMETER);
5194 AssertReturn(pState, VERR_NO_MEMORY);
5216 AssertReturn(pRectD3D, VERR_NO_MEMORY);
5303 AssertReturn(sidVertex < SVGA3D_MAX_SURFACE_IDS, VERR_INVALID_PARAMETER);
5304 AssertReturn(sidVertex < pState->cSurfaces && pState->papSurfaces[sidVertex]->id == sidVertex, VERR_INVALID_PARAMETER);
5394 AssertReturn(pState, VERR_INTERNAL_ERROR);
5404 AssertReturn(numVertexDecls && numVertexDecls <= SVGA3D_MAX_VERTEX_ARRAYS, VERR_INVALID_PARAMETER);
5405 AssertReturn(numRanges && numRanges <= SVGA3D_MAX_DRAW_PRIMITIVE_RANGES, VERR_INVALID_PARAMETER);
5406 AssertReturn(!cVertexDivisor || cVertexDivisor == numVertexDecls, VERR_INVALID_PARAMETER);
5694 AssertReturn(pState, VERR_NO_MEMORY);
5728 AssertReturn(pState, VERR_NO_MEMORY);
5741 AssertReturn(shid < SVGA3D_MAX_SHADER_IDS, VERR_INVALID_PARAMETER);
5747 AssertReturn(pvNew, VERR_NO_MEMORY);
5766 AssertReturn(pvNew, VERR_NO_MEMORY);
5786 AssertReturn(pShader->pShaderProgram, VERR_NO_MEMORY);
5827 AssertReturn(pState, VERR_NO_MEMORY);
5878 AssertReturn(pState, VERR_NO_MEMORY);
5951 AssertReturn(pState, VERR_NO_MEMORY);