Changeset 63062 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Aug 5, 2016 8:59:29 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDDrawVHWA.cpp
r63058 r63062 237 237 pBody->u.in.hSrcSurf = pSrcDesc->hHostHandle; 238 238 VBoxDispVHWAFromRECTL(&pBody->u.in.srcRect, &lpBlt->rSrc); 239 pBody->DstGuestSurfInfo = (uint 64_t)pDstDesc;240 pBody->SrcGuestSurfInfo = (uint 64_t)pSrcDesc;239 pBody->DstGuestSurfInfo = (uintptr_t)pDstDesc; 240 pBody->SrcGuestSurfInfo = (uintptr_t)pSrcDesc; 241 241 242 242 pBody->u.in.flags = VBoxDispVHWAFromDDBLTs(lpBlt->dwFlags); … … 315 315 pBody->u.in.hTargSurf = pTargDesc->hHostHandle; 316 316 pBody->u.in.hCurrSurf = pCurrDesc->hHostHandle; 317 pBody->TargGuestSurfInfo = (uint 64_t)pTargDesc;318 pBody->CurrGuestSurfInfo = (uint 64_t)pCurrDesc;317 pBody->TargGuestSurfInfo = (uintptr_t)pTargDesc; 318 pBody->CurrGuestSurfInfo = (uintptr_t)pCurrDesc; 319 319 320 320 pTargDesc->bVisible = pCurrDesc->bVisible; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPCr.cpp
r63053 r63062 395 395 pBufCmd->cbBuffer = sizeof (*pCmd); 396 396 pBufCmd->u32GuestData = 0; 397 pBufCmd->u64GuestData = (uint 64_t)pfnCompletion;397 pBufCmd->u64GuestData = (uintptr_t)pfnCompletion; 398 398 399 399 pBufCmd = &pBody->aBuffers[1]; … … 401 401 pBufCmd->cbBuffer = pWbDr->cbBuf; 402 402 pBufCmd->u32GuestData = 0; 403 pBufCmd->u64GuestData = (uint 64_t)pWbDr;403 pBufCmd->u64GuestData = (uintptr_t)pWbDr; 404 404 405 405 return VBOXMP_CRSHGSMICON_DR_GET_CMDCTX(pHdr, cBuffers, sizeof (VBOXMP_CRHGSMICMD_READ), void); … … 625 625 pBufCmd->cbBuffer = sizeof (*pCmd); 626 626 pBufCmd->u32GuestData = 0; 627 pBufCmd->u64GuestData = (uint 64_t)pfnCompletion;627 pBufCmd->u64GuestData = (uintptr_t)pfnCompletion; 628 628 629 629 pBufCmd = &pBody->aBuffers[1]; … … 637 637 pBufCmd->cbBuffer = pWbDr->cbBuf; 638 638 pBufCmd->u32GuestData = 0; 639 pBufCmd->u64GuestData = (uint 64_t)pWbDr;639 pBufCmd->u64GuestData = (uintptr_t)pWbDr; 640 640 641 641 return VBOXMP_CRSHGSMICON_DR_GET_CMDCTX(pHdr, cBuffers, sizeof (VBOXMP_CRHGSMICMD_WRITEREAD), void); … … 676 676 677 677 uint64_t*pu64Completion = VBOXMP_CRSHGSMICON_CMD_GET_CMDCTX(pCmd, cBuffers, sizeof (VBOXMP_CRHGSMICMD_WRITE), uint64_t); 678 *pu64Completion = (uint 64_t)pfnCompletion;679 return (void*)(pu64Completion+1);678 *pu64Completion = (uintptr_t)pfnCompletion; 679 return pu64Completion + 1; 680 680 } 681 681 … … 719 719 pBufCmd->cbBuffer = sizeof (*pCmd); 720 720 pBufCmd->u32GuestData = 0; 721 pBufCmd->u64GuestData = (uint 64_t)pfnCompletion;721 pBufCmd->u64GuestData = (uintptr_t)pfnCompletion; 722 722 723 723 pBufCmd = &pBody->aBuffers[1]; … … 954 954 955 955 parms.u64PID.type = VMMDevHGCMParmType_64bit; 956 parms.u64PID.u.value64 = (uint 64_t)PsGetCurrentProcessId();956 parms.u64PID.u.value64 = (uintptr_t)PsGetCurrentProcessId(); 957 957 958 958 Assert(parms.u64PID.u.value64); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
r63057 r63062 1223 1223 pUmAlloc->hAlloc = pAllocRef->hSessionHandle; 1224 1224 pUmAlloc->cbData = pAlloc->cbData; 1225 pUmAlloc->pvData = (uint 64_t)pvUm;1225 pUmAlloc->pvData = (uintptr_t)pvUm; 1226 1226 return STATUS_SUCCESS; 1227 1227 } … … 1417 1417 pBufCmd->cbBuffer = pBufInfo->Info.cbData; 1418 1418 pBufCmd->u32GuestData = 0; 1419 pBufCmd->u64GuestData = (uint 64_t)pRef;1419 pBufCmd->u64GuestData = (uintptr_t)pRef; 1420 1420 } 1421 1421 else -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPShgsmi.cpp
r63053 r63062 75 75 PVBOXSHGSMIHEADER pHeader = VBoxSHGSMIBufferHeader(pvBuff); 76 76 pHeader->u64Info1 = (uint64_t)vboxSHGSMICompletionSetEvent; 77 pHeader->u64Info2 = (uint 64_t)hEventSem;77 pHeader->u64Info2 = (uintptr_t)hEventSem; 78 78 pHeader->fFlags = VBOXSHGSMI_FLAG_GH_ASYNCH_IRQ; 79 79 … … 126 126 fFlags &= ~VBOXSHGSMI_FLAG_GH_ASYNCH_CALLBACK_IRQ; 127 127 PVBOXSHGSMIHEADER pHeader = VBoxSHGSMIBufferHeader (pvBuff); 128 pHeader->u64Info1 = (uint 64_t)pfnCompletion;129 pHeader->u64Info2 = (uint 64_t)pvCompletion;128 pHeader->u64Info1 = (uintptr_t)pfnCompletion; 129 pHeader->u64Info2 = (uintptr_t)pvCompletion; 130 130 pHeader->fFlags = fFlags; 131 131 … … 139 139 fFlags |= VBOXSHGSMI_FLAG_GH_ASYNCH_CALLBACK_IRQ | VBOXSHGSMI_FLAG_GH_ASYNCH_IRQ; 140 140 PVBOXSHGSMIHEADER pHeader = VBoxSHGSMIBufferHeader (pvBuff); 141 pHeader->u64Info1 = (uint 64_t)pfnCompletion;142 pHeader->u64Info2 = (uint 64_t)pvCompletion;141 pHeader->u64Info1 = (uintptr_t)pfnCompletion; 142 pHeader->u64Info2 = (uintptr_t)pvCompletion; 143 143 /* we must assign rather than or because flags field does not get zeroed on command creation */ 144 144 pHeader->fFlags = fFlags; … … 244 244 if (pfnCompletion) 245 245 { 246 pCur->u64Info1 = (uint 64_t)pfnCompletion;247 pCur->u64Info2 = (uint 64_t)pvCompletion;246 pCur->u64Info1 = (uintptr_t)pfnCompletion; 247 pCur->u64Info2 = (uintptr_t)pvCompletion; 248 248 pCur->fFlags &= ~VBOXSHGSMI_FLAG_GH_ASYNCH_CALLBACK_IRQ; 249 249 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp
r63057 r63062 1254 1254 pConnect->Connect.u32MajorVersion = crVersionMajor; 1255 1255 pConnect->Connect.u32MinorVersion = crVersionMinor; 1256 pConnect->Connect.u64Pid = (uint 64_t)PsGetCurrentProcessId();1256 pConnect->Connect.u64Pid = (uintptr_t)PsGetCurrentProcessId(); 1257 1257 1258 1258 int rc = vboxCmdVbvaCtlSubmitSync(pHGSMICtx, &pConnect->Hdr);
Note:
See TracChangeset
for help on using the changeset viewer.