- Timestamp:
- Jun 20, 2018 11:27:14 AM (7 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxD3DIf.cpp
r69500 r72621 846 846 { 847 847 Assert(hostId); 848 Assert(pDevice->DefaultContext.ContextInfo.hContext); 848 849 849 850 VBOXDISPIFESCAPE Data; … … 876 877 } 877 878 878 int vboxD3DIfSetHostId(PVBOXWDDMDISP_ALLOCATION pAlloc, uint32_t hostID, uint32_t *pHostID)879 static int vboxD3DIfSetHostId(PVBOXWDDMDISP_ALLOCATION pAlloc, uint32_t hostID, uint32_t *pHostID) 879 880 { 880 881 struct VBOXWDDMDISP_RESOURCE *pRc = pAlloc->pRc; 881 882 PVBOXWDDMDISP_DEVICE pDevice = pRc->pDevice; 883 884 AssertReturn(pDevice->DefaultContext.ContextInfo.hContext, VERR_GENERAL_FAILURE); 882 885 883 886 VBOXDISPIFESCAPE_SETALLOCHOSTID SetHostID = {0}; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxD3DIf.h
r70052 r72621 40 40 void VBoxD3DIfLockUnlockMemSynch(struct VBOXWDDMDISP_ALLOCATION *pAlloc, D3DLOCKED_RECT *pLockInfo, RECT *pRect, bool bToLockInfo); 41 41 42 int vboxD3DIfSetHostId(PVBOXWDDMDISP_ALLOCATION pAlloc, uint32_t hostID, uint32_t *pHostID);43 42 IUnknown* vboxD3DIfCreateSharedPrimary(PVBOXWDDMDISP_ALLOCATION pAlloc); 44 43 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispCm.cpp
r69500 r72621 209 209 HRESULT vboxDispCmCtxDestroy(PVBOXWDDMDISP_DEVICE pDevice, PVBOXWDDMDISP_CONTEXT pContext) 210 210 { 211 if (!pContext->ContextInfo.hContext) 212 return S_OK; 213 211 214 return vboxDispCmSessionCtxDestroy(&g_pVBoxCmMgr.Session, pDevice, pContext); 212 215 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r72010 r72621 291 291 static HRESULT vboxWddmDalNotifyChange(PVBOXWDDMDISP_DEVICE pDevice) 292 292 { 293 if (!pDevice->DefaultContext.ContextInfo.hContext) 294 return E_FAIL; 295 293 296 VBOXWDDMDISP_NSCADD NscAdd = { NULL }; /* Shuts up MSC. */ 294 297 BOOL bReinitRenderData = TRUE; … … 471 474 else 472 475 { 473 WARN(("vboxWddmDalNotifyChange failed %#x", hr));476 // WARN(("vboxWddmDalNotifyChange failed %#x", hr)); 474 477 if (pAlloc->DirtyAllocListEntry.pNext) 475 478 vboxWddmDalRemove(pAlloc); … … 749 752 if (cAllocsKm == Buf.SwapchainInfo.SwapchainInfo.cAllocs) 750 753 { 754 AssertReturn(pDevice->DefaultContext.ContextInfo.hContext, E_FAIL); 755 751 756 D3DDDICB_ESCAPE DdiEscape = {0}; 752 757 DdiEscape.hContext = pDevice->DefaultContext.ContextInfo.hContext; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxUhgsmiDisp.cpp
r69500 r72621 163 163 PVBOXUHGSMI_PRIVATE_D3D pHg = VBOXUHGSMID3D_GET(pHgsmi); 164 164 PVBOXWDDMDISP_DEVICE pDevice = pHg->pDevice; 165 166 AssertReturn(pDevice->DefaultContext.ContextInfo.hContext, VERR_GENERAL_FAILURE); 167 165 168 UINT cbDmaCmd = pDevice->DefaultContext.ContextInfo.CommandBufferSize; 166 169 int rc = vboxUhgsmiBaseDxDmaFill(aBuffers, cBuffers, … … 207 210 PVBOXUHGSMI_PRIVATE_D3D pPrivate = VBOXUHGSMID3D_GET(pHgsmi); 208 211 PVBOXWDDMDISP_DEVICE pDevice = pPrivate->pDevice; 212 213 AssertReturn(pDevice->DefaultContext.ContextInfo.hContext, VERR_GENERAL_FAILURE); 214 209 215 D3DDDICB_ESCAPE DdiEscape = {0}; 210 216 DdiEscape.hContext = pDevice->DefaultContext.ContextInfo.hContext;
Note:
See TracChangeset
for help on using the changeset viewer.