VirtualBox

Changeset 50933 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Mar 31, 2014 4:43:00 PM (11 years ago)
Author:
vboxsync
Message:

wddm: fix command preemption

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp

    r50928 r50933  
    10001000    bool fProcessed;
    10011001    uint8_t* pu8Cmd;
     1002    bool fFenceFound = false;
    10021003
    10031004    while ((pu8Cmd = (uint8_t*)VBoxVBVAExBIterNext(&Iter, &cbBuffer, &fProcessed)) != NULL)
     
    10101011        if (pCmd->u32FenceID != u32FenceID)
    10111012            continue;
     1013
     1014        fFenceFound = true;
    10121015
    10131016        if (!ASMAtomicCmpXchgU8(&pCmd->u8State, VBOXCMDVBVA_STATE_CANCELLED, VBOXCMDVBVA_STATE_SUBMITTED))
     
    10211024        return true;
    10221025    }
     1026
     1027    if (!fFenceFound)
     1028        vboxCmdVbvaDdiNotifyComplete(pDevExt, pVbva, &u32FenceID, DXGK_INTERRUPT_DMA_PREEMPTED);
    10231029
    10241030    return false;
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