VirtualBox

Changeset 51361 in vbox


Ignore:
Timestamp:
May 22, 2014 9:29:44 PM (11 years ago)
Author:
vboxsync
Message:

wddm/crOpenGL: misc bugfixes

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp

    r51260 r51361  
    10621062    VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType;
    10631063    volatile uint32_t cRefs;
     1064    PVOID pvUm;
    10641065    MDL Mdl;
    10651066} VBOXVIDEOCM_ALLOC_REF, *PVBOXVIDEOCM_ALLOC_REF;
     
    11831184                if (pvUm)
    11841185                {
     1186                    pAllocRef->pvUm = pvUm;
    11851187                    pAllocRef->pContext = pContext;
    11861188                    pAllocRef->pAlloc = pAlloc;
     
    11971199                        return STATUS_SUCCESS;
    11981200                    }
     1201
     1202                    MmUnmapLockedPages(pvUm, &pAllocRef->Mdl);
    11991203                }
    12001204                else
     
    12371241        /* wait for the dereference, i.e. for all commands involving this allocation to complete */
    12381242        vboxWddmCounterU32Wait(&pAllocRef->cRefs, 1);
     1243
     1244        MmUnmapLockedPages(pAllocRef->pvUm, &pAllocRef->Mdl);
    12391245
    12401246        MmUnlockPages(&pAllocRef->Mdl);
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r51357 r51361  
    13241324
    13251325#ifdef VBOX_WITH_CROGL
     1326    if (pDevExt->u32CrConDefaultClientID)
     1327        VBoxMpCrCtlConDisconnect(pDevExt, &pDevExt->CrCtlCon, pDevExt->u32CrConDefaultClientID);
     1328
    13261329    VBoxMpCrShgsmiTransportTerm(&pDevExt->CrHgsmiTransport);
    13271330#endif
  • trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp

    r51330 r51361  
    269269    NOREF(pvClient);
    270270
     271    if (g_u32fCrHgcmDisabled)
     272    {
     273        WARN(("connect not expected"));
     274        return VERR_INVALID_STATE;
     275    }
     276
    271277    Log(("SHARED_CROPENGL svcConnect: u32ClientID = %d\n", u32ClientID));
    272278
     
    281287
    282288    NOREF(pvClient);
     289
     290    if (g_u32fCrHgcmDisabled)
     291    {
     292        WARN(("disconnect not expected"));
     293        return VINF_SUCCESS;
     294    }
    283295
    284296    Log(("SHARED_CROPENGL svcDisconnect: u32ClientID = %d\n", u32ClientID));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette