VirtualBox

Changeset 50542 in vbox


Ignore:
Timestamp:
Feb 21, 2014 2:13:48 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92394
Message:

Use HGSMI memory allocator

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HGSMI/HGSMI.h

    r50518 r50542  
    7474/* Heap types. */
    7575#define HGSMI_HEAP_TYPE_NULL    0 /* Heap not initialized. */
    76 #define HGSMI_HEAP_TYPE_POINTER 1 /* RTHEAPSIMPLE. Obsolete. */
    77 #define HGSMI_HEAP_TYPE_OFFSET  2 /* RTHEAPOFFSET. Obsolete. */
     76#define HGSMI_HEAP_TYPE_POINTER 1 /* Deprecated. RTHEAPSIMPLE. */
     77#define HGSMI_HEAP_TYPE_OFFSET  2 /* Deprecated. RTHEAPOFFSET. */
    7878#define HGSMI_HEAP_TYPE_MA      3 /* Memory allocator. */
    7979
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispVBVA.cpp

    r50482 r50542  
    425425
    426426        rc = HGSMIHeapSetup(&pDev->hgsmi.ctx.heapCtx,
    427                             HGSMI_HEAP_TYPE_POINTER,
     427                            HGSMI_HEAP_TYPE_MA,
    428428                            (uint8_t *)pDev->memInfo.VideoRamBase+pDev->layout.offDisplayInfo+sizeof(HGSMIHOSTFLAGS),
    429429                            pDev->layout.cbDisplayInfo-sizeof(HGSMIHOSTFLAGS),
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp

    r50482 r50542  
    15051505        /* Setup a HGSMI heap within the adapter information area. */
    15061506        rc = VBoxSHGSMIInit(&pInfo->CmdHeap,
    1507                              HGSMI_HEAP_TYPE_POINTER,
     1507                             HGSMI_HEAP_TYPE_MA,
    15081508                             pvBuffer,
    15091509                             cbBuffer,
  • trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp

    r50482 r50542  
    326326    pCtx->port = (RTIOPORT)VGA_PORT_HGSMI_GUEST;
    327327#ifdef VBOX_WDDM_MINIPORT
    328     return VBoxSHGSMIInit(&pCtx->heapCtx, HGSMI_HEAP_TYPE_POINTER, pvGuestHeapMemory,
     328    return VBoxSHGSMIInit(&pCtx->heapCtx, HGSMI_HEAP_TYPE_MA, pvGuestHeapMemory,
    329329                          cbGuestHeapMemory, offVRAMGuestHeapMemory, pEnv);
    330330#else
    331     return HGSMIHeapSetup(&pCtx->heapCtx, HGSMI_HEAP_TYPE_POINTER, pvGuestHeapMemory,
     331    return HGSMIHeapSetup(&pCtx->heapCtx, HGSMI_HEAP_TYPE_MA, pvGuestHeapMemory,
    332332                          cbGuestHeapMemory, offVRAMGuestHeapMemory, pEnv);
    333333#endif
  • trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp

    r50518 r50542  
    11631163            {
    11641164                rc = HGSMIHeapSetup (&pIns->hostHeap,
    1165                                      HGSMI_HEAP_TYPE_OFFSET,
     1165                                     HGSMI_HEAP_TYPE_MA,
    11661166                                     pIns->area.pu8Base+offHeap,
    11671167                                     cbHeap,
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