VirtualBox

Changeset 65467 in vbox


Ignore:
Timestamp:
Jan 26, 2017 7:46:42 PM (8 years ago)
Author:
vboxsync
Message:

WDDM: Workaround for recent Windows Insider builds. Stop copying wrong rectangles in DxgkDdiPresentDisplayOnly, bugref:8727

File:
1 edited

Legend:

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

    r65381 r65467  
    72667266    for (UINT i = 0; i < pPresentDisplayOnly->NumDirtyRects; ++i)
    72677267    {
    7268         vboxVdmaGgDmaBltPerform(pDevExt, &SrcAllocData, &pPresentDisplayOnly->pDirtyRect[i], &pSource->AllocData, &pPresentDisplayOnly->pDirtyRect[i]);
     7268        RECT *pDirtyRect = &pPresentDisplayOnly->pDirtyRect[i];
     7269
     7270        if (pDirtyRect->left >= pDirtyRect->right || pDirtyRect->top >= pDirtyRect->bottom)
     7271        {
     7272            WARN(("Wrong dirty rect (%d, %d)-(%d, %d)",
     7273                pDirtyRect->left, pDirtyRect->top, pDirtyRect->right, pDirtyRect->bottom));
     7274            continue;
     7275        }
     7276
     7277        vboxVdmaGgDmaBltPerform(pDevExt, &SrcAllocData, pDirtyRect, &pSource->AllocData, pDirtyRect);
     7278
    72697279        if (!bUpdateRectInited)
    72707280        {
    7271             UpdateRect = pPresentDisplayOnly->pDirtyRect[i];
     7281            UpdateRect = *pDirtyRect;
    72727282            bUpdateRectInited = TRUE;
    72737283        }
    72747284        else
    7275             vboxWddmRectUnite(&UpdateRect, &pPresentDisplayOnly->pDirtyRect[i]);
     7285            vboxWddmRectUnite(&UpdateRect, pDirtyRect);
    72767286    }
    72777287
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