VirtualBox

Ignore:
Timestamp:
Nov 3, 2010 12:02:43 AM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: avoid unnecessary paging transfers, cleanup

Location:
trunk/src/VBox/Additions/WINNT/Graphics
Files:
2 edited

Legend:

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

    r33714 r33715  
    455455HRESULT vboxUhgsmiKmtDestroy(PVBOXUHGSMI_PRIVATE_KMT pHgsmi)
    456456{
    457     Assert(0);
    458457    HRESULT hr = vboxDispKmtDestroyContext(&pHgsmi->Context);
    459458    Assert(hr == S_OK);
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp

    r33714 r33715  
    28452845
    28462846#else
     2847            PVBOXWDDM_ALLOCATION pAlloc = (PVBOXWDDM_ALLOCATION)pBuildPagingBuffer->Transfer.hAllocation;
     2848            Assert(pAlloc);
     2849            if (pAlloc
     2850                    && !pAlloc->fRcFlags.Overlay /* overlay surfaces actually contain a valid data */
     2851                    && pAlloc->enmType != VBOXWDDM_ALLOC_TYPE_STD_SHADOWSURFACE  /* shadow primary - also */
     2852                    && pAlloc->enmType != VBOXWDDM_ALLOC_TYPE_UMD_HGSMI_BUFFER /* hgsmi buffer - also */
     2853                    )
     2854            {
     2855                /* we do now care about the others for now */
     2856                Status = STATUS_SUCCESS;
     2857                break;
     2858            }
    28472859            UINT cbCmd = VBOXVDMACMD_SIZE(VBOXVDMACMD_DMA_BPB_TRANSFER);
    28482860            PVBOXVDMACBUF_DR pDr = vboxVdmaCBufDrCreate (&pDevExt->u.primary.Vdma, cbCmd);
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