VirtualBox

Changeset 50944 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 1, 2014 1:53:32 PM (11 years ago)
Author:
vboxsync
Message:

wddm/crOpenGL: new command submission fixes

Location:
trunk/src/VBox
Files:
3 edited

Legend:

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

    r50940 r50944  
    914914
    915915    pCmd->u8State = VBOXCMDVBVA_STATE_SUBMITTED;
     916#ifdef DEBUG_misha
     917    Assert(pCmd->u32FenceID == pVbva->u32FenceSubmitted + 1);
     918#endif
    916919    pVbva->u32FenceSubmitted = pCmd->u32FenceID;
    917920
     
    10631066        {
    10641067            if (u32FenceID)
     1068            {
     1069#ifdef DEBUG_misha
     1070                Assert(u32FenceID == pVbva->u32FenceCompleted + 1);
     1071#endif
    10651072                pVbva->u32FenceCompleted = u32FenceID;
     1073            }
    10661074            enmDdiNotify = DXGK_INTERRUPT_DMA_COMPLETED;
    10671075        }
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_vreg.h

    r50754 r50944  
    8888    pRect1->xRight = RT_MIN(pRect1->xRight, pRect2->xRight);
    8989    pRect1->yBottom = RT_MIN(pRect1->yBottom, pRect2->yBottom);
     90    /* ensure the rect is valid */
     91    pRect1->xRight = RT_MAX(pRect1->xRight, pRect1->xLeft);
     92    pRect1->yBottom = RT_MAX(pRect1->yBottom, pRect1->yTop);
    9093}
    9194
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp

    r50921 r50944  
    46724672            {
    46734673                /* blit to primary from non-primary */
    4674                 if (u8Flags & VBOXCMDVBVA_OPF_ALLOC_DSTID)
     4674                if (u8Flags & VBOXCMDVBVA_OPF_ALLOC_SRCID)
    46754675                {
    46764676                    /* TexPresent */
    46774677                    uint32_t texId = pBlt->alloc.u.id;
     4678                    if (!texId)
     4679                    {
     4680                        WARN(("texId is NULL!\n"));
     4681                        return -1;
     4682                    }
    46784683
    46794684                    crServerDispatchVBoxTexPresent(texId, u8PrimaryID, pBlt->Pos.x, pBlt->Pos.y, cRects, (const GLint*)pRects);
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