Changeset 71590 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
- Timestamp:
- Mar 31, 2018 6:34:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
r71196 r71590 1392 1392 UINT cbCmd = VBOXVDMACMD_SIZE_FROMBODYSIZE(RT_OFFSETOF(VBOXVDMACMD_CHROMIUM_CMD, aBuffers[cBuffers])); 1393 1393 1394 PVBOXVDMACBUF_DRpDr = vboxVdmaCBufDrCreate(&pDevExt->u.primary.Vdma, cbCmd);1394 VBOXVDMACBUF_DR RT_UNTRUSTED_VOLATILE_HOST *pDr = vboxVdmaCBufDrCreate(&pDevExt->u.primary.Vdma, cbCmd); 1395 1395 if (pDr) 1396 1396 { … … 1438 1438 { 1439 1439 PVBOXVDMADDI_CMD pDdiCmd = VBOXVDMADDI_CMD_FROM_BUF_DR(pDr); 1440 vboxVdmaDdiCmdInit(pDdiCmd, 0, 0, vboxVideoAMgrAllocSubmitCompletion, pDr);1440 vboxVdmaDdiCmdInit(pDdiCmd, 0, 0, vboxVideoAMgrAllocSubmitCompletion, (void *)pDr); 1441 1441 /* mark command as submitted & invisible for the dx runtime since dx did not originate it */ 1442 1442 vboxVdmaDdiCmdSubmittedNotDx(pDdiCmd); … … 1808 1808 { 1809 1809 int rc = VINF_SUCCESS; 1810 PVBOXVDMA_CTL pCmd = (PVBOXVDMA_CTL)VBoxSHGSMICommandAlloc(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx, 1811 sizeof(VBOXVDMA_CTL), HGSMI_CH_VBVA, VBVA_VDMA_CTL); 1810 VBOXVDMA_CTL RT_UNTRUSTED_VOLATILE_GUEST *pCmd 1811 = (VBOXVDMA_CTL RT_UNTRUSTED_VOLATILE_GUEST *)VBoxSHGSMICommandAlloc(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx, 1812 sizeof(VBOXVDMA_CTL), HGSMI_CH_VBVA, VBVA_VDMA_CTL); 1812 1813 if (pCmd) 1813 1814 { … … 1845 1846 } 1846 1847 1847 VBoxSHGSMICommandFree 1848 VBoxSHGSMICommandFree(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx, pCmd); 1848 1849 } 1849 1850 else
Note:
See TracChangeset
for help on using the changeset viewer.