Changeset 32877 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Oct 1, 2010 10:51:28 PM (14 years ago)
- 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 76 76 endif 77 77 VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL 78 VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOX VDMA VBOXWDDMDISP78 VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP 79 79 # VBoxDispD3D_DEFS += VBOXDISPMP_TEST 80 80 ifdef VBOXWDDM_WITH_VBVA … … 94 94 wddm/VBoxDispMp.cpp \ 95 95 wddm/VBoxScreen.cpp \ 96 wddm/VBoxUhgsmiDisp.cpp \ 96 97 wddm/VBoxDispMpTst.cpp \ 97 98 wddm/VBoxDispD3D.def \ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r32823 r32877 5511 5511 --pData->cPatchLocationList; 5512 5512 ++pData->cAllocations; 5513 5514 ++pData->pAllocationList; 5515 ++pData->pPatchLocationList; 5516 pData->pvCommandBuffer = (VOID*)(((uint8_t*)pData->pvCommandBuffer) + 4); 5517 5513 5518 } 5514 5519 else 5515 5520 hr = S_FALSE; 5516 5517 ++pData->pAllocationList;5518 ++pData->pPatchLocationList;5519 pData->pvCommandBuffer = (VOID*)(((uint8_t*)pData->pvCommandBuffer) + 4);5520 5521 5521 5522 return hr; … … 5538 5539 NscAdd.cPatchLocationList = pDevice->DefaultContext.ContextInfo.PatchLocationListSize; 5539 5540 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); 5540 5549 bReinitRenderData = FALSE; 5541 5550 } … … 5574 5583 RenderData.NumPatchLocations = pDevice->DefaultContext.ContextInfo.PatchLocationListSize - NscAdd.cPatchLocationList; 5575 5584 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; 5579 5588 RenderData.hContext = pDevice->DefaultContext.ContextInfo.hContext; 5580 5589
Note:
See TracChangeset
for help on using the changeset viewer.