VirtualBox

Ignore:
Timestamp:
Mar 12, 2010 5:44:11 PM (15 years ago)
Author:
vboxsync
Message:

wddm: basics for DMA commands support in graphics device impl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/HGSMI/SHGSMIHost.cpp

    r26969 r27339  
    4040}
    4141
    42 int VBoxSHGSMICommandCompleteAsynch (PHGSMIINSTANCE pIns, void *pvData)
     42int VBoxSHGSMICommandComplete (PHGSMIINSTANCE pIns, void *pvData)
    4343{
    4444    PVBOXSHGSMIHEADER pHdr = VBoxSHGSMIBufferHeader (pvData);
    45     Assert(!!(pHdr->fFlags & VBOXSHGSMI_FLAG_HG_ASYNCH));
    46     return vboxSHGSMICommandCompleteAsynch (pIns, pHdr);
    47 }
    48 
    49 int VBoxSHGSMICommandCompleteSynch (PHGSMIINSTANCE pIns, void *pvData)
    50 {
    51     PVBOXSHGSMIHEADER pHdr = VBoxSHGSMIBufferHeader (pvData);
    52     Assert(!(pHdr->fFlags & VBOXSHGSMI_FLAG_HG_ASYNCH));
    53     if (vboxSHGSMICommandCanCompleteSynch(pHdr))
     45    if (!(pHdr->fFlags & VBOXSHGSMI_FLAG_HG_ASYNCH) /* <- check if synchronous completion */
     46            && vboxSHGSMICommandCanCompleteSynch(pHdr)) /* <- check if can complete synchronously */
    5447        return VINF_SUCCESS;
    5548    pHdr->fFlags |= VBOXSHGSMI_FLAG_HG_ASYNCH;
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