Changeset 71651 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 4, 2018 12:20:08 PM (7 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics/HGSMI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp
r71629 r71651 1535 1535 1536 1536 int rc; 1537 PHGSMIINSTANCE pIns = (PHGSMIINSTANCE)RTMemAllocZ(sizeof 1537 PHGSMIINSTANCE pIns = (PHGSMIINSTANCE)RTMemAllocZ(sizeof(HGSMIINSTANCE) + cbContext); 1538 1538 if (pIns) 1539 1539 { 1540 rc = HGSMIAreaInitialize 1540 rc = HGSMIAreaInitialize(&pIns->area, pu8MemBase, cbMem, offBase); 1541 1541 if (RT_SUCCESS (rc)) 1542 rc = RTCritSectInit 1542 rc = RTCritSectInit(&pIns->instanceCritSect); 1543 1543 if (RT_SUCCESS (rc)) 1544 rc = RTCritSectInit 1544 rc = RTCritSectInit(&pIns->hostHeapCritSect); 1545 1545 if (RT_SUCCESS (rc)) 1546 rc = RTCritSectInit 1546 rc = RTCritSectInit(&pIns->hostFIFOCritSect); 1547 1547 if (RT_SUCCESS (rc)) 1548 1548 { … … 1575 1575 } 1576 1576 1577 uint32_t HGSMIReset 1577 uint32_t HGSMIReset(PHGSMIINSTANCE pIns) 1578 1578 { 1579 1579 uint32_t flags = 0; … … 1592 1592 1593 1593 #ifdef VBOX_WITH_WDDM 1594 while (hgsmiProcessGuestCmdCompletion(pIns) != HGSMIOFFSET_VOID)1594 while (hgsmiProcessGuestCmdCompletion(pIns) != HGSMIOFFSET_VOID) 1595 1595 {} 1596 1596 #endif -
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.h
r71619 r71651 28 28 typedef struct HGSMIINSTANCE *PHGSMIINSTANCE; 29 29 30 /* Callback for the guest notification about a new host buffer. */30 /** Callback for the guest notification about a new host buffer. */ 31 31 typedef DECLCALLBACK(void) FNHGSMINOTIFYGUEST(void *pvCallback); 32 32 typedef FNHGSMINOTIFYGUEST *PFNHGSMINOTIFYGUEST;
Note:
See TracChangeset
for help on using the changeset viewer.