VirtualBox

Ignore:
Timestamp:
Mar 6, 2012 8:38:49 PM (13 years ago)
Author:
vboxsync
Message:

wddm: concurrency fixes

File:
1 edited

Legend:

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

    r39981 r40387  
    288288#endif
    289289
    290 HGSMIHEAP* vboxWddmHgsmiGetHeapFromCmdOffset(PVBOXMP_DEVEXT pDevExt, HGSMIOFFSET offCmd)
     290PVBOXSHGSMI vboxWddmHgsmiGetHeapFromCmdOffset(PVBOXMP_DEVEXT pDevExt, HGSMIOFFSET offCmd)
    291291{
    292292#ifdef VBOX_WITH_VDMA
    293     if(HGSMIAreaContainsOffset(&pDevExt->u.primary.Vdma.CmdHeap.area, offCmd))
     293    if(HGSMIAreaContainsOffset(&pDevExt->u.primary.Vdma.CmdHeap.Heap.area, offCmd))
    294294        return &pDevExt->u.primary.Vdma.CmdHeap;
    295295#endif
    296     if (HGSMIAreaContainsOffset(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.area, offCmd))
     296    if (HGSMIAreaContainsOffset(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.Heap.area, offCmd))
    297297        return &VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx;
    298298    return NULL;
     
    311311{
    312312#ifdef VBOX_WITH_VDMA
    313     if(HGSMIAreaContainsOffset(&pDevExt->u.primary.Vdma.CmdHeap.area, offCmd))
     313    if(HGSMIAreaContainsOffset(&pDevExt->u.primary.Vdma.CmdHeap.Heap.area, offCmd))
    314314        return VBOXWDDM_HGSMICMD_TYPE_DMACMD;
    315315#endif
    316     if (HGSMIAreaContainsOffset(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.area, offCmd))
     316    if (HGSMIAreaContainsOffset(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.Heap.area, offCmd))
    317317        return VBOXWDDM_HGSMICMD_TYPE_CTL;
    318318    return VBOXWDDM_HGSMICMD_TYPE_UNDEFINED;
     
    11711171                    VBOXWDDM_HGSMICMD_TYPE enmType = vboxWddmHgsmiGetCmdTypeFromOffset(pDevExt, offCmd);
    11721172                    PVBOXVTLIST pList;
    1173                     HGSMIHEAP * pHeap = NULL;
     1173                    PVBOXSHGSMI pHeap = NULL;
    11741174                    switch (enmType)
    11751175                    {
     
    11911191                    {
    11921192                        uint16_t chInfo;
    1193                         uint8_t *pvCmd = HGSMIBufferDataAndChInfoFromOffset (&pHeap->area, offCmd, &chInfo);
     1193                        uint8_t *pvCmd = HGSMIBufferDataAndChInfoFromOffset (&pHeap->Heap.area, offCmd, &chInfo);
    11941194                        Assert(pvCmd);
    11951195                        if (pvCmd)
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