Changeset 63058 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispVHWA.cpp
- Timestamp:
- Aug 5, 2016 8:19:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispVHWA.cpp
r62522 r63058 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox XPDM Display driver … … 27 26 } 28 27 29 static void VBoxDispVHWACommandRetain( PVBOXDISPDEV pDev,VBOXVHWACMD* pCmd)28 static void VBoxDispVHWACommandRetain(VBOXVHWACMD* pCmd) 30 29 { 31 30 ASMAtomicIncU32(&pCmd->cRefs); … … 37 36 pCmd->GuestVBVAReserved2 = 0; 38 37 /* ensure the command is not removed until we're processing it */ 39 VBoxDispVHWACommandRetain(p Dev, pCmd);38 VBoxDispVHWACommandRetain(pCmd); 40 39 41 40 /* complete it asynchronously by setting event */ … … 197 196 static DECLCALLBACK(void) VBoxDispVHWACommandCompletionCallbackEvent(PVBOXDISPDEV pDev, VBOXVHWACMD * pCmd, void * pContext) 198 197 { 198 RT_NOREF(pCmd); 199 199 VBOXPEVENT pEvent = (VBOXPEVENT)pContext; 200 200 LONG oldState = pDev->vpAPI.VideoPortProcs.pfnSetEvent(pDev->vpAPI.pContext, pEvent); … … 207 207 pCmd->GuestVBVAReserved1 = (uintptr_t)pfnCompletion; 208 208 pCmd->GuestVBVAReserved2 = (uintptr_t)pContext; 209 VBoxDispVHWACommandRetain(p Dev, pCmd);209 VBoxDispVHWACommandRetain(pCmd); 210 210 211 211 VBoxHGSMIBufferSubmit(&pDev->hgsmi.ctx, pCmd); … … 220 220 } 221 221 222 static DECLCALLBACK(void) VBoxDispVHWAFreeCmdCompletion(PVBOXDISPDEV pDev, VBOXVHWACMD * pCmd, void * pContext) 223 { 222 static DECLCALLBACK(void) VBoxDispVHWAFreeCmdCompletion(PVBOXDISPDEV pDev, VBOXVHWACMD *pCmd, void *pvContext) 223 { 224 RT_NOREF(pvContext); 224 225 VBoxDispVHWACommandRelease(pDev, pCmd); 225 226 } … … 229 230 pCmd->GuestVBVAReserved1 = (uintptr_t)VBoxDispVHWAFreeCmdCompletion; 230 231 231 VBoxDispVHWACommandRetain(p Dev, pCmd);232 VBoxDispVHWACommandRetain(pCmd); 232 233 233 234 pCmd->Flags |= VBOXVHWACMD_FLAG_GH_ASYNCH_NOCOMPLETION;
Note:
See TracChangeset
for help on using the changeset viewer.