VirtualBox

Ignore:
Timestamp:
Nov 20, 2013 5:53:55 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90796
Message:

wddm: more on new comand mechanism, guest side almost done, some cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPDevExt.h

    r49458 r49591  
    128128   BOOLEAN f3DEnabled;
    129129   BOOLEAN fTexPresentEnabled;
     130   BOOLEAN fCmdVbvaEnabled;
    130131
    131132   uint32_t u32CrConDefaultClientID;
     133
     134   VBOXCMDVBVA CmdVbva;
    132135
    133136   VBOXMP_CRCTLCON CrCtlCon;
     
    213216DECLINLINE(ULONG) vboxWddmVramCpuVisibleSize(PVBOXMP_DEVEXT pDevExt)
    214217{
    215 #ifdef VBOXWDDM_RENDER_FROM_SHADOW
     218    if (pDevExt->fCmdVbvaEnabled)
     219    {
     220        /* all memory layout info should be initialized */
     221        Assert(pDevExt->CmdVbva.Vbva.offVRAMBuffer);
     222        /* page aligned */
     223        Assert(!(pDevExt->CmdVbva.Vbva.offVRAMBuffer & 0xfff));
     224
     225        return (ULONG)(pDevExt->CmdVbva.Vbva.offVRAMBuffer & ~0xfffULL);
     226    }
    216227    /* all memory layout info should be initialized */
    217228    Assert(pDevExt->aSources[0].Vbva.Vbva.offVRAMBuffer);
     
    220231
    221232    return (ULONG)(pDevExt->aSources[0].Vbva.Vbva.offVRAMBuffer & ~0xfffULL);
    222 #else
    223     /* all memory layout info should be initialized */
    224     Assert(pDevExt->u.primary.Vdma.CmdHeap.Heap.area.offBase);
    225     /* page aligned */
    226     Assert(!(pDevExt->u.primary.Vdma.CmdHeap.Heap.area.offBase & 0xfff));
    227 
    228     return pDevExt->u.primary.Vdma.CmdHeap.Heap.area.offBase & ~0xfffUL;
    229 #endif
    230233}
    231234
Note: See TracChangeset for help on using the changeset viewer.

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