VirtualBox

Ignore:
Timestamp:
Mar 11, 2010 10:22:17 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58720
Message:

wddm: DdiPatch bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp

    r27307 r27308  
    16581658     * Value == 4 is RedirectedPresent
    16591659     * we do not expect any other flags to be set here */
    1660     Assert(pPatch->Flags.Value == 2 || pPatch->Flags.Value == 4);
    1661 
    1662     uint8_t *pBuf = ((uint8_t *)pPatch->pDmaBuffer) + pPatch->DmaBufferPrivateDataSubmissionStartOffset;
     1660//    Assert(pPatch->Flags.Value == 2 || pPatch->Flags.Value == 4);
     1661
     1662    uint8_t *pBuf = ((uint8_t *)pPatch->pDmaBuffer) + pPatch->DmaBufferSubmissionStartOffset;
    16631663    for (UINT i = pPatch->PatchLocationListSubmissionStart; i < pPatch->PatchLocationListSubmissionLength; ++i)
    16641664    {
     
    16681668        if (pAllocationList->SegmentId)
    16691669        {
    1670             Assert(pPatchList->PatchOffset < (pPatch->DmaBufferPrivateDataSubmissionEndOffset - pPatch->DmaBufferPrivateDataSubmissionStartOffset));
     1670            Assert(pPatchList->PatchOffset < (pPatch->DmaBufferSubmissionEndOffset - pPatch->DmaBufferSubmissionStartOffset));
    16711671            *((VBOXVIDEOOFFSET*)(pBuf+pPatchList->PatchOffset)) = (VBOXVIDEOOFFSET)pAllocationList->PhysicalAddress.QuadPart;
    16721672        }
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