VirtualBox

Ignore:
Timestamp:
Jun 30, 2010 6:58:49 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: do not query visible region info when not necessary (disabled for now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispCm.cpp

    r30532 r30538  
    2525    CRITICAL_SECTION CritSect;
    2626    RTLISTNODE CtxList;
     27    bool bQueryMp;
    2728} VBOXDISPCM_SESSION, *PVBOXDISPCM_SESSION;
    2829
     
    6364        InitializeCriticalSection(&pSession->CritSect);
    6465        RTListInit(&pSession->CtxList);
     66        pSession->bQueryMp = false;
    6567        return S_OK;
    6668    }
     
    207209    do
    208210    {
    209         HRESULT hr = vboxDispCmSessionCmdQueryData(pSession, pCmd, cbCmd);
    210         Assert(hr == S_OK || hr == S_FALSE);
    211         if (hr == S_OK || hr != S_FALSE)
    212             return hr;
     211#ifdef DEBUG_misha
     212        /* not tested yet */
     213        if (pSession->bQueryMp)
     214#endif
     215        {
     216            HRESULT hr = vboxDispCmSessionCmdQueryData(pSession, pCmd, cbCmd);
     217            Assert(hr == S_OK || hr == S_FALSE);
     218            if (hr == S_OK || hr != S_FALSE)
     219                return hr;
     220
     221            pSession->bQueryMp = false;
     222        }
    213223
    214224        DWORD dwResult = WaitForSingleObject(pSession->hEvent, dwMilliseconds);
     
    217227            case WAIT_OBJECT_0:
    218228            {
     229                pSession->bQueryMp = true;
    219230                break; /* <- query commands */
    220231            }
    221232            case WAIT_TIMEOUT:
    222233            {
     234                Assert(!pSession->bQueryMp);
    223235                return WAIT_TIMEOUT;
    224236            }
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