VirtualBox

Ignore:
Timestamp:
Oct 22, 2010 4:28:07 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66950
Message:

wddm/3d: chromium hgsmi fixes, profiling

File:
1 edited

Legend:

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

    r33306 r33365  
    56655665        hr = pDevice->RtCallbacks.pfnSetDisplayModeCb(pDevice->hDevice, &DdiDm);
    56665666        Assert(hr == S_OK);
     5667#if 0
     5668        if (hr == S_OK)
     5669        {
     5670            D3DDDICB_LOCK DdiLock = {0};
     5671            DdiLock.hAllocation = pAlloc->hAllocation;
     5672            DdiLock.Flags.LockEntire = 1;
     5673            DdiLock.Flags.ReadOnly = 1;
     5674            hr = pDevice->RtCallbacks.pfnLockCb(pDevice->hDevice, &DdiLock);
     5675            Assert(hr == S_OK);
     5676            if (hr == S_OK)
     5677            {
     5678                D3DLOCKED_RECT LockRect;
     5679                IDirect3DSurface9 *pD3DIfSurf = (IDirect3DSurface9*)pAlloc->pD3DIf;
     5680                hr = pD3DIfSurf->LockRect(&LockRect, NULL /* RECT*/, D3DLOCK_DISCARD);
     5681                Assert(hr == S_OK);
     5682                if (hr == S_OK)
     5683                {
     5684                    /** @todo: take pitch into account */
     5685                    Assert(pAlloc->SurfDesc.pitch == LockRect.Pitch);
     5686                    memcpy(LockRect.pBits, DdiLock.pData, LockRect.Pitch * pAlloc->SurfDesc.height);
     5687                    hr = pD3DIfSurf->UnlockRect();
     5688                    Assert(hr == S_OK);
     5689                }
     5690
     5691                D3DDDICB_UNLOCK DdiUnlock = {0};
     5692                DdiUnlock.NumAllocations = 1;
     5693                DdiUnlock.phAllocations = &pAlloc->hAllocation;
     5694                hr = pDevice->RtCallbacks.pfnUnlockCb(pDevice->hDevice, &DdiUnlock);
     5695                Assert(hr == S_OK);
     5696            }
     5697            hr = S_OK;
     5698#endif
     5699        }
    56675700    }
    56685701
     
    76527685                        }
    76537686    #else
    7654     //# define VBOXDISP_TEST_SWAPCHAIN
     7687    # define VBOXDISP_TEST_SWAPCHAIN
    76557688    # ifdef VBOXDISP_TEST_SWAPCHAIN
    76567689                        VBOXDISP_D3DEV(pDevice);
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