Changeset 71594 in vbox
- Timestamp:
- Mar 31, 2018 8:08:29 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r71371 r71594 2170 2170 /* 1. hide overlay */ 2171 2171 pCmd = vhwaHHCmdCreate(VBOXVHWACMD_TYPE_SURF_OVERLAY_UPDATE, sizeof(VBOXVHWACMD_SURF_OVERLAY_UPDATE)); 2172 VBOXVHWACMD_SURF_OVERLAY_UPDATE *pOUCmd = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_OVERLAY_UPDATE);2172 VBOXVHWACMD_SURF_OVERLAY_UPDATE RT_UNTRUSTED_VOLATILE_GUEST *pOUCmd = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_OVERLAY_UPDATE); 2173 2173 pOUCmd->u.in.hSrcSurf = pSurfList->current()->handle(); 2174 2174 pOUCmd->u.in.flags = VBOXVHWA_OVER_HIDE; … … 2185 2185 VBoxVHWASurfaceBase *pCurSurf = (*sIt); 2186 2186 pCmd = vhwaHHCmdCreate(VBOXVHWACMD_TYPE_SURF_DESTROY, sizeof(VBOXVHWACMD_SURF_DESTROY)); 2187 VBOXVHWACMD_SURF_DESTROY *pSDCmd = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_DESTROY);2187 VBOXVHWACMD_SURF_DESTROY RT_UNTRUSTED_VOLATILE_GUEST *pSDCmd = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_DESTROY); 2188 2188 pSDCmd->u.in.hSurf = pCurSurf->handle(); 2189 2189 … … 2201 2201 { 2202 2202 pCmd = vhwaHHCmdCreate(VBOXVHWACMD_TYPE_SURF_DESTROY, sizeof(VBOXVHWACMD_SURF_DESTROY)); 2203 VBOXVHWACMD_SURF_DESTROY *pSDCmd = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_DESTROY);2203 VBOXVHWACMD_SURF_DESTROY RT_UNTRUSTED_VOLATILE_GUEST *pSDCmd = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_DESTROY); 2204 2204 pSDCmd->u.in.hSurf = pCurSurf->handle(); 2205 2205 … … 2212 2212 2213 2213 #ifdef VBOX_WITH_VIDEOHWACCEL 2214 int VBoxVHWAImage::vhwaSurfaceCanCreate(struct VBOXVHWACMD_SURF_CANCREATE *pCmd)2214 int VBoxVHWAImage::vhwaSurfaceCanCreate(struct VBOXVHWACMD_SURF_CANCREATE RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2215 2215 { 2216 2216 VBOXQGLLOG_ENTER(("\n")); … … 2310 2310 } 2311 2311 2312 int VBoxVHWAImage::vhwaSurfaceCreate (struct VBOXVHWACMD_SURF_CREATE *pCmd)2312 int VBoxVHWAImage::vhwaSurfaceCreate (struct VBOXVHWACMD_SURF_CREATE RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2313 2313 { 2314 2314 VBOXQGLLOG_ENTER (("\n")); … … 2558 2558 2559 2559 #ifdef VBOX_WITH_WDDM 2560 int VBoxVHWAImage::vhwaSurfaceGetInfo(struct VBOXVHWACMD_SURF_GETINFO *pCmd)2560 int VBoxVHWAImage::vhwaSurfaceGetInfo(struct VBOXVHWACMD_SURF_GETINFO RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2561 2561 { 2562 2562 VBoxVHWAColorFormat format; … … 2584 2584 } 2585 2585 #endif 2586 int VBoxVHWAImage::vhwaSurfaceDestroy(struct VBOXVHWACMD_SURF_DESTROY *pCmd)2586 int VBoxVHWAImage::vhwaSurfaceDestroy(struct VBOXVHWACMD_SURF_DESTROY RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2587 2587 { 2588 2588 VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf); … … 2662 2662 (_pr)->bottom - (_pr)->top) 2663 2663 2664 int VBoxVHWAImage::vhwaSurfaceLock(struct VBOXVHWACMD_SURF_LOCK *pCmd)2664 int VBoxVHWAImage::vhwaSurfaceLock(struct VBOXVHWACMD_SURF_LOCK RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2665 2665 { 2666 2666 VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf); … … 2675 2675 } 2676 2676 2677 int VBoxVHWAImage::vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK *pCmd)2677 int VBoxVHWAImage::vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2678 2678 { 2679 2679 VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf); … … 2716 2716 } 2717 2717 2718 int VBoxVHWAImage::vhwaSurfaceBlt(struct VBOXVHWACMD_SURF_BLT *pCmd)2718 int VBoxVHWAImage::vhwaSurfaceBlt(struct VBOXVHWACMD_SURF_BLT RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2719 2719 { 2720 2720 Q_UNUSED(pCmd); … … 2722 2722 } 2723 2723 2724 int VBoxVHWAImage::vhwaSurfaceFlip(struct VBOXVHWACMD_SURF_FLIP *pCmd)2724 int VBoxVHWAImage::vhwaSurfaceFlip(struct VBOXVHWACMD_SURF_FLIP RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2725 2725 { 2726 2726 VBoxVHWASurfaceBase *pTargSurf = handle2Surface(pCmd->u.in.hTargSurf); … … 2746 2746 } 2747 2747 2748 int VBoxVHWAImage::vhwaSurfaceColorFill(struct VBOXVHWACMD_SURF_COLORFILL *pCmd)2748 int VBoxVHWAImage::vhwaSurfaceColorFill(struct VBOXVHWACMD_SURF_COLORFILL RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2749 2749 { 2750 2750 NOREF(pCmd); … … 2752 2752 } 2753 2753 2754 void VBoxVHWAImage::vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd) 2754 void VBoxVHWAImage::vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, 2755 struct VBOXVHWACMD_SURF_OVERLAY_UPDATE RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2755 2756 { 2756 2757 if(pCmd->u.in.flags & VBOXVHWA_OVER_KEYDEST) … … 2832 2833 } 2833 2834 2834 int VBoxVHWAImage::vhwaSurfaceOverlayUpdate(struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd)2835 int VBoxVHWAImage::vhwaSurfaceOverlayUpdate(struct VBOXVHWACMD_SURF_OVERLAY_UPDATE RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2835 2836 { 2836 2837 VBoxVHWASurfaceBase *pSrcSurf = handle2Surface(pCmd->u.in.hSrcSurf); … … 2899 2900 } 2900 2901 2901 int VBoxVHWAImage::vhwaSurfaceOverlaySetPosition(struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pCmd)2902 int VBoxVHWAImage::vhwaSurfaceOverlaySetPosition(struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2902 2903 { 2903 2904 VBoxVHWASurfaceBase *pDstSurf = handle2Surface(pCmd->u.in.hDstSurf); … … 2940 2941 } 2941 2942 2942 int VBoxVHWAImage::vhwaSurfaceColorkeySet(struct VBOXVHWACMD_SURF_COLORKEY_SET *pCmd)2943 int VBoxVHWAImage::vhwaSurfaceColorkeySet(struct VBOXVHWACMD_SURF_COLORKEY_SET RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2943 2944 { 2944 2945 VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf); … … 2975 2976 } 2976 2977 2977 int VBoxVHWAImage::vhwaQueryInfo1(struct VBOXVHWACMD_QUERYINFO1 *pCmd)2978 int VBoxVHWAImage::vhwaQueryInfo1(struct VBOXVHWACMD_QUERYINFO1 RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 2978 2979 { 2979 2980 VBOXQGLLOG_ENTER(("\n")); … … 3001 3002 } 3002 3003 3003 memset( pCmd, 0, sizeof(VBOXVHWACMD_QUERYINFO1));3004 if (bEnabled)3004 memset((void *)pCmd, 0, sizeof(VBOXVHWACMD_QUERYINFO1)); 3005 if (bEnabled) 3005 3006 { 3006 3007 pCmd->u.out.cfgFlags = VBOXVHWA_CFG_ENABLED; … … 3078 3079 } 3079 3080 3080 int VBoxVHWAImage::vhwaQueryInfo2(struct VBOXVHWACMD_QUERYINFO2 *pCmd)3081 int VBoxVHWAImage::vhwaQueryInfo2(struct VBOXVHWACMD_QUERYINFO2 RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 3081 3082 { 3082 3083 VBOXQGLLOG_ENTER(("\n")); … … 3090 3091 3091 3092 pCmd->numFourCC = (uint32_t)num; 3092 memcpy( pCmd->FourCC, aFourcc, num*sizeof(aFourcc[0]));3093 memcpy((void *)pCmd->FourCC, aFourcc, num * sizeof(aFourcc[0])); 3093 3094 return VINF_SUCCESS; 3094 3095 } … … 3198 3199 pCmd->Flags = VBOXVHWACMD_FLAG_HH_CMD; 3199 3200 3200 VBOXVHWACMD_SURF_CREATE * pCreateSurf = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_CREATE);3201 VBOXVHWACMD_SURF_CREATE *pCreateSurf = VBOXVHWACMD_BODY_HOST_HEAP(pCmd, VBOXVHWACMD_SURF_CREATE); 3201 3202 int rc; 3202 3203 uint32_t u32; … … 3358 3359 pCmd->Flags = VBOXVHWACMD_FLAG_HH_CMD; 3359 3360 3360 VBOXVHWACMD_SURF_OVERLAY_UPDATE * pUpdateOverlay = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_OVERLAY_UPDATE);3361 VBOXVHWACMD_SURF_OVERLAY_UPDATE *pUpdateOverlay = VBOXVHWACMD_BODY_HOST_HEAP(pCmd, VBOXVHWACMD_SURF_OVERLAY_UPDATE); 3361 3362 int rc; 3362 3363 … … 3519 3520 } 3520 3521 3521 int VBoxVHWAImage::vhwaLoadExec(VHWACommandList * 3522 int VBoxVHWAImage::vhwaLoadExec(VHWACommandList *pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version) 3522 3523 { 3523 3524 VBOXQGL_LOAD_START(pSSM); … … 4306 4307 case VBOXVHWACMD_TYPE_HH_CONSTRUCT: 4307 4308 { 4308 VBOXVHWACMD_HH_CONSTRUCT * pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_HH_CONSTRUCT);4309 VBOXVHWACMD_HH_CONSTRUCT *pBody = VBOXVHWACMD_BODY_HOST_HEAP(pCmd, VBOXVHWACMD_HH_CONSTRUCT); 4309 4310 pCmd->Flags &= ~VBOXVHWACMD_FLAG_HG_ASYNCH; 4310 4311 pCmd->rc = vhwaConstruct(pBody); … … 4345 4346 case VBOXVHWACMD_TYPE_HH_SAVESTATE_SAVEPERFORM: 4346 4347 { 4347 VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM *pSave = VBOXVHWACMD_BODY (pCmd, VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM);4348 VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM *pSave = VBOXVHWACMD_BODY_HOST_HEAP(pCmd, VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM); 4348 4349 PSSMHANDLE pSSM = pSave->pSSM; 4349 4350 int rc = SSMR3PutU32(pSSM, VBOXQGL_STATE_VERSION); AssertRC(rc); … … 4359 4360 case VBOXVHWACMD_TYPE_HH_SAVESTATE_LOADPERFORM: 4360 4361 { 4361 VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM *pLoad = VBOXVHWACMD_BODY (pCmd, VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM);4362 VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM *pLoad = VBOXVHWACMD_BODY_HOST_HEAP(pCmd, VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM); 4362 4363 PSSMHANDLE pSSM = pLoad->pSSM; 4363 4364 uint32_t u32Version = 0; … … 4383 4384 { 4384 4385 #ifdef RT_STRICT 4385 VBOXVHWACMD_QUERYINFO1 *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_QUERYINFO1);4386 VBOXVHWACMD_QUERYINFO1 RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_QUERYINFO1); 4386 4387 #endif 4387 4388 Assert(pBody->u.in.guestVersion.maj == VBOXVHWA_VERSION_MAJ); … … 4674 4675 } 4675 4676 4676 int VBoxQGLOverlay::vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK *pCmd)4677 int VBoxQGLOverlay::vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK RT_UNTRUSTED_VOLATILE_GUEST *pCmd) 4677 4678 { 4678 4679 int rc = mOverlayImage.vhwaSurfaceUnlock(pCmd); … … 4694 4695 case VBOXVHWACMD_TYPE_SURF_CANCREATE: 4695 4696 { 4696 VBOXVHWACMD_SURF_CANCREATE *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_CANCREATE);4697 VBOXVHWACMD_SURF_CANCREATE RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_CANCREATE); 4697 4698 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4698 4699 initGl(); … … 4703 4704 case VBOXVHWACMD_TYPE_SURF_CREATE: 4704 4705 { 4705 VBOXVHWACMD_SURF_CREATE *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_CREATE);4706 VBOXVHWACMD_SURF_CREATE RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_CREATE); 4706 4707 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4707 4708 initGl(); … … 4728 4729 case VBOXVHWACMD_TYPE_SURF_DESTROY: 4729 4730 { 4730 VBOXVHWACMD_SURF_DESTROY *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_DESTROY);4731 VBOXVHWACMD_SURF_DESTROY RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_DESTROY); 4731 4732 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4732 4733 initGl(); … … 4751 4752 case VBOXVHWACMD_TYPE_SURF_LOCK: 4752 4753 { 4753 VBOXVHWACMD_SURF_LOCK *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_LOCK);4754 VBOXVHWACMD_SURF_LOCK RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_LOCK); 4754 4755 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4755 4756 initGl(); … … 4760 4761 case VBOXVHWACMD_TYPE_SURF_UNLOCK: 4761 4762 { 4762 VBOXVHWACMD_SURF_UNLOCK *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_UNLOCK);4763 VBOXVHWACMD_SURF_UNLOCK RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_UNLOCK); 4763 4764 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4764 4765 initGl(); … … 4770 4771 case VBOXVHWACMD_TYPE_SURF_BLT: 4771 4772 { 4772 VBOXVHWACMD_SURF_BLT *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_BLT);4773 VBOXVHWACMD_SURF_BLT RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_BLT); 4773 4774 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4774 4775 initGl(); … … 4780 4781 case VBOXVHWACMD_TYPE_SURF_FLIP: 4781 4782 { 4782 VBOXVHWACMD_SURF_FLIP *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_FLIP);4783 VBOXVHWACMD_SURF_FLIP RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_FLIP); 4783 4784 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4784 4785 initGl(); … … 4790 4791 case VBOXVHWACMD_TYPE_SURF_OVERLAY_UPDATE: 4791 4792 { 4792 VBOXVHWACMD_SURF_OVERLAY_UPDATE *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_OVERLAY_UPDATE);4793 VBOXVHWACMD_SURF_OVERLAY_UPDATE RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_OVERLAY_UPDATE); 4793 4794 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4794 4795 initGl(); … … 4806 4807 case VBOXVHWACMD_TYPE_SURF_OVERLAY_SETPOSITION: 4807 4808 { 4808 VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_OVERLAY_SETPOSITION);4809 VBOXVHWACMD_SURF_OVERLAY_SETPOSITION RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_OVERLAY_SETPOSITION); 4809 4810 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4810 4811 initGl(); … … 4823 4824 case VBOXVHWACMD_TYPE_SURF_COLORFILL: 4824 4825 { 4825 VBOXVHWACMD_SURF_COLORFILL *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_COLORFILL);4826 VBOXVHWACMD_SURF_COLORFILL RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_COLORFILL); 4826 4827 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4827 4828 initGl(); … … 4834 4835 case VBOXVHWACMD_TYPE_SURF_COLORKEY_SET: 4835 4836 { 4836 VBOXVHWACMD_SURF_COLORKEY_SET *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_COLORKEY_SET);4837 VBOXVHWACMD_SURF_COLORKEY_SET RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_COLORKEY_SET); 4837 4838 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4838 4839 initGl(); … … 4846 4847 case VBOXVHWACMD_TYPE_QUERY_INFO1: 4847 4848 { 4848 VBOXVHWACMD_QUERYINFO1 *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_QUERYINFO1);4849 VBOXVHWACMD_QUERYINFO1 RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_QUERYINFO1); 4849 4850 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4850 4851 initGl(); … … 4855 4856 case VBOXVHWACMD_TYPE_QUERY_INFO2: 4856 4857 { 4857 VBOXVHWACMD_QUERYINFO2 *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_QUERYINFO2);4858 VBOXVHWACMD_QUERYINFO2 RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_QUERYINFO2); 4858 4859 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4859 4860 initGl(); … … 4873 4874 case VBOXVHWACMD_TYPE_HH_CONSTRUCT: 4874 4875 { 4875 VBOXVHWACMD_HH_CONSTRUCT * pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_HH_CONSTRUCT);4876 VBOXVHWACMD_HH_CONSTRUCT *pBody = VBOXVHWACMD_BODY_HOST_HEAP(pCmd, VBOXVHWACMD_HH_CONSTRUCT); 4876 4877 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4877 4878 pCmd->rc = vhwaConstruct(pBody); … … 4881 4882 case VBOXVHWACMD_TYPE_SURF_GETINFO: 4882 4883 { 4883 VBOXVHWACMD_SURF_GETINFO *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_GETINFO);4884 VBOXVHWACMD_SURF_GETINFO RT_UNTRUSTED_VOLATILE_GUEST *pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_GETINFO); 4884 4885 Assert(!mGlOn == !mOverlayImage.hasSurfaces()); 4885 4886 pCmd->rc = mOverlayImage.vhwaSurfaceGetInfo(pBody); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
r69500 r71594 1411 1411 static int vhwaLoadExec(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version); 1412 1412 1413 int vhwaSurfaceCanCreate(struct VBOXVHWACMD_SURF_CANCREATE *pCmd);1414 int vhwaSurfaceCreate(struct VBOXVHWACMD_SURF_CREATE *pCmd);1413 int vhwaSurfaceCanCreate(struct VBOXVHWACMD_SURF_CANCREATE RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1414 int vhwaSurfaceCreate(struct VBOXVHWACMD_SURF_CREATE RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1415 1415 #ifdef VBOX_WITH_WDDM 1416 int vhwaSurfaceGetInfo(struct VBOXVHWACMD_SURF_GETINFO *pCmd);1416 int vhwaSurfaceGetInfo(struct VBOXVHWACMD_SURF_GETINFO RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1417 1417 #endif 1418 int vhwaSurfaceDestroy(struct VBOXVHWACMD_SURF_DESTROY *pCmd);1419 int vhwaSurfaceLock(struct VBOXVHWACMD_SURF_LOCK *pCmd);1420 int vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK *pCmd);1421 int vhwaSurfaceBlt(struct VBOXVHWACMD_SURF_BLT *pCmd);1422 int vhwaSurfaceFlip(struct VBOXVHWACMD_SURF_FLIP *pCmd);1423 int vhwaSurfaceColorFill(struct VBOXVHWACMD_SURF_COLORFILL *pCmd);1424 int vhwaSurfaceOverlayUpdate(struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmf);1425 int vhwaSurfaceOverlaySetPosition(struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION *pCmd);1426 int vhwaSurfaceColorkeySet(struct VBOXVHWACMD_SURF_COLORKEY_SET *pCmd);1427 int vhwaQueryInfo1(struct VBOXVHWACMD_QUERYINFO1 *pCmd);1428 int vhwaQueryInfo2(struct VBOXVHWACMD_QUERYINFO2 *pCmd);1418 int vhwaSurfaceDestroy(struct VBOXVHWACMD_SURF_DESTROY RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1419 int vhwaSurfaceLock(struct VBOXVHWACMD_SURF_LOCK RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1420 int vhwaSurfaceUnlock(struct VBOXVHWACMD_SURF_UNLOCK RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1421 int vhwaSurfaceBlt(struct VBOXVHWACMD_SURF_BLT RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1422 int vhwaSurfaceFlip(struct VBOXVHWACMD_SURF_FLIP RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1423 int vhwaSurfaceColorFill(struct VBOXVHWACMD_SURF_COLORFILL RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1424 int vhwaSurfaceOverlayUpdate(struct VBOXVHWACMD_SURF_OVERLAY_UPDATE RT_UNTRUSTED_VOLATILE_GUEST *pCmf); 1425 int vhwaSurfaceOverlaySetPosition(struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1426 int vhwaSurfaceColorkeySet(struct VBOXVHWACMD_SURF_COLORKEY_SET RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1427 int vhwaQueryInfo1(struct VBOXVHWACMD_QUERYINFO1 RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1428 int vhwaQueryInfo2(struct VBOXVHWACMD_QUERYINFO2 RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1429 1429 int vhwaConstruct(struct VBOXVHWACMD_HH_CONSTRUCT *pCmd); 1430 1430 … … 1530 1530 static int vhwaLoadVHWAEnable(VHWACommandList * pCmdList); 1531 1531 1532 void vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd); 1532 void vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, 1533 struct VBOXVHWACMD_SURF_OVERLAY_UPDATE RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1533 1534 #endif 1534 1535 … … 1754 1755 void vhwaSaveExec (struct SSMHANDLE * pSSM); 1755 1756 private: 1756 int vhwaSurfaceUnlock (struct VBOXVHWACMD_SURF_UNLOCK *pCmd);1757 int vhwaSurfaceUnlock (struct VBOXVHWACMD_SURF_UNLOCK RT_UNTRUSTED_VOLATILE_GUEST *pCmd); 1757 1758 1758 1759 void repaintMain();
Note:
See TracChangeset
for help on using the changeset viewer.