VirtualBox

Ignore:
Timestamp:
Apr 7, 2014 5:08:07 PM (11 years ago)
Author:
vboxsync
Message:

wddm: do not allocate VRAM for host-side or dummy allocations

File:
1 edited

Legend:

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

    r50940 r50987  
    236236    KeReleaseSpinLock(&pSource->AllocationLock, OldIrql);
    237237    return pPrimary;
     238}
     239
     240DECLINLINE(VBOXVIDEOOFFSET) vboxWddmAddrFramOffset(const VBOXWDDM_ADDR *pAddr)
     241{
     242    return (pAddr->offVram != VBOXVIDEOOFFSET_VOID && pAddr->SegmentId) ?
     243            (pAddr->SegmentId == 1 ? pAddr->offVram : 0)
     244            : VBOXVIDEOOFFSET_VOID;
    238245}
    239246
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