VirtualBox

Changeset 24044 in vbox


Ignore:
Timestamp:
Oct 23, 2009 3:51:41 PM (15 years ago)
Author:
vboxsync
Message:

2d accel: fix unnecessary unlock g->h commands

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c

    r24028 r24044  
    11871187
    11881188        if(lpSurfaceLocal->ddsCaps.dwCaps & DDSCAPS_VISIBLE
    1189                 || (
    1190                         lpSurfaceLocal->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE
    1191                         || (
    1192                                 !!(lpSurfaceLocal->ddsCaps.dwCaps & DDSCAPS_OVERLAY)
    1193                                 && pDesc->bVisible
    1194                            )
     1189                || lpSurfaceLocal->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE
     1190                || (    !!(lpSurfaceLocal->ddsCaps.dwCaps & DDSCAPS_OVERLAY)
     1191                     && pDesc->bVisible
    11951192                   )
    11961193          )
     
    15841581        pBody->TargGuestSurfInfo = (uint64_t)pTargDesc;
    15851582        pBody->CurrGuestSurfInfo = (uint64_t)pCurrDesc;
     1583
     1584        pTargDesc->bVisible = pCurrDesc->bVisible;
     1585        pCurrDesc->bVisible = false;
    15861586
    15871587//        pBody->u.in.flags = vboxVHWAFromDDFLIPs(lpFlip->dwFlags);
  • trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp

    r22920 r24044  
    10561056            if (pIns->hostHeap.cRefs)
    10571057            {
     1058                Assert(0);
    10581059                /* It is possible to change the heap only if there is no pending allocations. */
    10591060                rc = VERR_ACCESS_DENIED;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp

    r23951 r24044  
    31243124{
    31253125    VBoxVHWASurfaceBase *pSurf = handle2Surface(pCmd->u.in.hSurf);
     3126#ifdef DEBUG_misha
     3127    /* for performance reasons we should receive unlock for visible surfaces only
     3128     * other surfaces receive unlock only once becoming visible, e.g. on DdFlip
     3129     * Ensure this is so*/
     3130    if(pSurf != mDisplay.getPrimary())
     3131    {
     3132        const OverlayList & overlays = mDisplay.overlays();
     3133        bool bFound = false;
     3134
     3135        for (OverlayList::const_iterator it = overlays.begin();
     3136             it != overlays.end(); ++ it)
     3137        {
     3138            VBoxVHWASurfList * pSurfList = *it;
     3139            if(pSurfList->current() == pSurf)
     3140            {
     3141                bFound = true;
     3142                break;
     3143            }
     3144        }
     3145
     3146        Assert(bFound);
     3147    }
     3148#endif
    31263149    VBOXQGLLOG_ENTER(("pSurf (0x%x)\n",pSurf));
    31273150    if(pCmd->u.in.xUpdatedMemValid)
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltPt-win.c

    r23927 r24044  
    16201620            if (pPacket != NULL)
    16211621            {
     1622#ifndef VBOX_LOOPBACK_USEFLAGS
     1623                PNDIS_PACKET pLb = NULL;
     1624#endif
    16221625                do
    16231626                {
     
    16331636
    16341637                    VBOXNETFLT_LBVERIFY(pNetFlt, pPacket);
    1635 #else
    1636                     PNDIS_PACKET pLb = NULL;
    16371638#endif
    16381639                    if(bNetFltActive)
     
    16691670
    16701671#ifndef VBOX_LOOPBACK_USEFLAGS
    1671                     Assert(pLb && !vboxNetFltWinLbIsFromIntNet(pLb));
     1672                    Assert(!pLb || !vboxNetFltWinLbIsFromIntNet(pLb));
    16721673#endif
    16731674                    Status = vboxNetFltWinRecvPassThru(pAdapt, pPacket);
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