VirtualBox

Ignore:
Timestamp:
Oct 1, 2010 10:51:28 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: basics for chromium over hgsmi

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk

    r32739 r32877  
    7676 endif
    7777VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
    78 VBoxDispD3D_DEFS     = UNICODE _UNICODE VBOX_WITH_WDDM VBOXVDMA VBOXWDDMDISP
     78VBoxDispD3D_DEFS     = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP
    7979# VBoxDispD3D_DEFS    += VBOXDISPMP_TEST
    8080ifdef VBOXWDDM_WITH_VBVA
     
    9494    wddm/VBoxDispMp.cpp \
    9595    wddm/VBoxScreen.cpp \
     96    wddm/VBoxUhgsmiDisp.cpp \
    9697    wddm/VBoxDispMpTst.cpp \
    9798        wddm/VBoxDispD3D.def \
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp

    r32823 r32877  
    55115511        --pData->cPatchLocationList;
    55125512        ++pData->cAllocations;
     5513
     5514        ++pData->pAllocationList;
     5515        ++pData->pPatchLocationList;
     5516        pData->pvCommandBuffer = (VOID*)(((uint8_t*)pData->pvCommandBuffer) + 4);
     5517
    55135518    }
    55145519    else
    55155520        hr = S_FALSE;
    5516 
    5517     ++pData->pAllocationList;
    5518     ++pData->pPatchLocationList;
    5519     pData->pvCommandBuffer = (VOID*)(((uint8_t*)pData->pvCommandBuffer) + 4);
    55205521
    55215522    return hr;
     
    55385539            NscAdd.cPatchLocationList = pDevice->DefaultContext.ContextInfo.PatchLocationListSize;
    55395540            NscAdd.cAllocations = 0;
     5541            Assert(NscAdd.cbCommandBuffer >= sizeof (VBOXWDDM_DMA_PRIVATEDATA_BASEHDR));
     5542            if (NscAdd.cbCommandBuffer < sizeof (VBOXWDDM_DMA_PRIVATEDATA_BASEHDR))
     5543                return E_FAIL;
     5544
     5545            PVBOXWDDM_DMA_PRIVATEDATA_BASEHDR pHdr = (PVBOXWDDM_DMA_PRIVATEDATA_BASEHDR)NscAdd.pvCommandBuffer;
     5546            pHdr->enmCmd = VBOXVDMACMD_TYPE_DMA_NOP;
     5547            NscAdd.pvCommandBuffer = (VOID*)(((uint8_t*)NscAdd.pvCommandBuffer) + sizeof (*pHdr));
     5548            NscAdd.cbCommandBuffer -= sizeof (*pHdr);
    55405549            bReinitRenderData = FALSE;
    55415550        }
     
    55745583        RenderData.NumPatchLocations = pDevice->DefaultContext.ContextInfo.PatchLocationListSize - NscAdd.cPatchLocationList;
    55755584        Assert(RenderData.NumPatchLocations == NscAdd.cAllocations);
    5576         RenderData.NewCommandBufferSize = sizeof (VBOXVDMACMD) + 4 * (100);
    5577         RenderData.NewAllocationListSize = 100;
    5578         RenderData.NewPatchLocationListSize = 100;
     5585//        RenderData.NewCommandBufferSize = sizeof (VBOXVDMACMD) + 4 * (100);
     5586//        RenderData.NewAllocationListSize = 100;
     5587//        RenderData.NewPatchLocationListSize = 100;
    55795588        RenderData.hContext = pDevice->DefaultContext.ContextInfo.hContext;
    55805589
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