Changeset 84841 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 16, 2020 12:23:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r84742 r84841 1272 1272 int rc = vmsvga3dContextFromCid(pState, pSurface->idAssociatedContext, &pAssociatedContext); 1273 1273 if (RT_SUCCESS(rc)) 1274 AssertStmt(pAssociatedContext->pDevice, rc = VERR_INTERNAL_ERROR); 1275 if (RT_SUCCESS(rc)) 1274 1276 { 1275 1277 IDirect3DQuery9 *pQuery; … … 1511 1513 rc = vmsvga3dContextFromCid(pState, cidSrc, &pContextSrc); 1512 1514 AssertRCReturn(rc, rc); 1515 AssertReturn(pContextSrc->pDevice, VERR_INTERNAL_ERROR); 1513 1516 1514 1517 LogFunc(("sid=%u type=%x format=%d -> create dest texture\n", sidDest, pSurfaceDest->surfaceFlags, pSurfaceDest->format)); … … 1532 1535 rc = vmsvga3dContextFromCid(pState, cidSrc, &pContextSrc); 1533 1536 AssertRCReturn(rc, rc); 1537 AssertReturn(pContextSrc->pDevice, VERR_INTERNAL_ERROR); 1534 1538 1535 1539 /* Must flush the other context's 3d pipeline to make sure all drawing is complete for the surface we're about to use. */ … … 1683 1687 rc = vmsvga3dContextFromCid(pState, pSurfaceSrc->idAssociatedContext, &pContext); 1684 1688 AssertRCReturn(rc, rc); 1689 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 1685 1690 1686 1691 rc = vmsvga3dGetD3DSurface(pState, pContext, pSurfaceSrc, src.face, src.mipmap, true, &pD3DSurf); … … 1693 1698 rc = vmsvga3dContextFromCid(pState, pSurfaceDest->idAssociatedContext, &pContext); 1694 1699 AssertRCReturn(rc, rc); 1700 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 1695 1701 1696 1702 rc = vmsvga3dGetD3DSurface(pState, pContext, pSurfaceDest, dest.face, dest.mipmap, true, &pD3DSurf); … … 2352 2358 rc = vmsvga3dContextFromCid(pState, pSurface->idAssociatedContext, &pContext); 2353 2359 AssertRCReturn(rc, rc); 2360 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 2354 2361 2355 2362 /* Get the surface involved in the transfer. */ … … 2522 2529 rc = vmsvga3dContextFromCid(pState, cid, &pContext); 2523 2530 AssertRCReturn(rc, rc); 2531 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 2524 2532 2525 2533 /* Unknown surface type; turn it into a texture. */ … … 3092 3100 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 3093 3101 AssertRCReturn(rc, rc); 3102 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 3094 3103 3095 3104 switch (type) … … 3169 3178 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 3170 3179 AssertRCReturn(rc, rc); 3180 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 3171 3181 3172 3182 pContext->state.zRange = zRange; … … 3241 3251 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 3242 3252 AssertRCReturn(rc, rc); 3253 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 3243 3254 3244 3255 for (unsigned i = 0; i < cRenderStates; i++) … … 3913 3924 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 3914 3925 AssertRCReturn(rc, rc); 3926 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 3915 3927 3916 3928 /* Save for vm state save/restore. */ … … 4337 4349 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 4338 4350 AssertRCReturn(rc, rc); 4351 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 4339 4352 4340 4353 for (unsigned i = 0; i < cTextureStates; i++) … … 4626 4639 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 4627 4640 AssertRCReturn(rc, rc); 4641 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 4628 4642 4629 4643 AssertReturn((unsigned)face < SVGA3D_FACE_MAX, VERR_INVALID_PARAMETER); … … 4678 4692 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 4679 4693 AssertRCReturn(rc, rc); 4694 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 4680 4695 4681 4696 switch (pData->type) … … 4747 4762 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 4748 4763 AssertRCReturn(rc, rc); 4764 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 4749 4765 4750 4766 /* Store for vm state save/restore */ … … 4769 4785 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 4770 4786 AssertRCReturn(rc, rc); 4787 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 4771 4788 4772 4789 /* Save for vm state save/restore. */ … … 4801 4818 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 4802 4819 AssertRCReturn(rc, rc); 4820 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 4803 4821 4804 4822 /* Store for vm state save/restore. */ … … 4833 4851 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 4834 4852 AssertRCReturn(rc, rc); 4853 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 4835 4854 4836 4855 PVMSVGA3DSURFACE pRT; … … 5100 5119 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 5101 5120 AssertRCReturn(rc, rc); 5121 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 5102 5122 5103 5123 HRESULT hr; … … 5417 5437 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 5418 5438 AssertRCReturn(rc, rc); 5439 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 5419 5440 5420 5441 /* Store for vm state save/restore. */ … … 5447 5468 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 5448 5469 AssertRCReturn(rc, rc); 5470 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 5449 5471 5450 5472 AssertReturn(shid < SVGA3D_MAX_SHADER_IDS, VERR_INVALID_PARAMETER); … … 5599 5621 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 5600 5622 AssertRCReturn(rc, rc); 5623 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 5601 5624 5602 5625 if (type == SVGA3D_SHADERTYPE_VS) … … 5667 5690 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); 5668 5691 AssertRCReturn(rc, rc); 5692 AssertReturn(pContext->pDevice, VERR_INTERNAL_ERROR); 5669 5693 5670 5694 for (uint32_t i = 0; i < cRegisters; i++)
Note:
See TracChangeset
for help on using the changeset viewer.