Changeset 74493 in vbox
- Timestamp:
- Sep 27, 2018 11:46:54 AM (6 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h
r74477 r74493 271 271 /* true if d3d false if ddraw */ 272 272 VBOXWDDM_CONTEXT_TYPE enmType; 273 uint32_t crVersionMajor; 274 uint32_t crVersionMinor; 275 /* we use uint64_t instead of HANDLE to ensure structure def is the same for both 32-bit and 64-bit 276 * since x64 kernel driver can be called by 32-bit UMD */ 277 uint64_t hUmEvent; 278 /* info to be passed to UMD notification to identify the context */ 279 uint64_t u64UmInfo; 273 union 274 { 275 struct 276 { 277 uint32_t crVersionMajor; 278 uint32_t crVersionMinor; 279 /* we use uint64_t instead of HANDLE to ensure structure def is the same for both 32-bit and 64-bit 280 * since x64 kernel driver can be called by 32-bit UMD */ 281 uint64_t hUmEvent; 282 /* info to be passed to UMD notification to identify the context */ 283 uint64_t u64UmInfo; 284 } vbox; 285 } u; 280 286 } VBOXWDDM_CREATECONTEXT_INFO, *PVBOXWDDM_CREATECONTEXT_INFO; 281 287 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispCm.cpp
r72621 r74493 124 124 Info.enmType = VBOXWDDM_CONTEXT_TYPE_CUSTOM_3D; 125 125 #ifdef VBOX_WITH_CROGL 126 Info. crVersionMajor = CR_PROTOCOL_VERSION_MAJOR;127 Info. crVersionMinor = CR_PROTOCOL_VERSION_MINOR;126 Info.u.vbox.crVersionMajor = CR_PROTOCOL_VERSION_MAJOR; 127 Info.u.vbox.crVersionMinor = CR_PROTOCOL_VERSION_MINOR; 128 128 #else 129 129 WARN(("not expected")); 130 Info. crVersionMajor = 0;131 Info. crVersionMinor = 0;130 Info.u.vbox.crVersionMajor = 0; 131 Info.u.vbox.crVersionMinor = 0; 132 132 #endif 133 133 fIsCrContext = TRUE; … … 138 138 fIsCrContext = FALSE; 139 139 } 140 Info. hUmEvent = (uintptr_t)g_pVBoxCmMgr.Session.hEvent;141 Info.u 64UmInfo = (uintptr_t)pContext;140 Info.u.vbox.hUmEvent = (uintptr_t)g_pVBoxCmMgr.Session.hEvent; 141 Info.u.vbox.u64UmInfo = (uintptr_t)pContext; 142 142 143 143 if (VBOXDISPMODE_IS_3D(pDevice->pAdapter)) -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.cpp
r69500 r74493 376 376 Info.u32IfVersion = 9; 377 377 Info.enmType = enmType; 378 Info. crVersionMajor = crVersionMajor;379 Info. crVersionMinor = crVersionMinor;380 Info. hUmEvent = (uintptr_t)hEvent;381 Info.u 64UmInfo = u64UmInfo;378 Info.u.vbox.crVersionMajor = crVersionMajor; 379 Info.u.vbox.crVersionMinor = crVersionMinor; 380 Info.u.vbox.hUmEvent = (uintptr_t)hEvent; 381 Info.u.vbox.u64UmInfo = u64UmInfo; 382 382 D3DKMT_CREATECONTEXT ContextData = {0}; 383 383 ContextData.hDevice = pDevice->hDevice; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r74477 r74493 6945 6945 { 6946 6946 pContext->enmType = VBOXWDDM_CONTEXT_TYPE_CUSTOM_3D; 6947 Status = vboxVideoCmCtxAdd(&pDevice->pAdapter->CmMgr, &pContext->CmContext, (HANDLE)pInfo-> hUmEvent, pInfo->u64UmInfo);6947 Status = vboxVideoCmCtxAdd(&pDevice->pAdapter->CmMgr, &pContext->CmContext, (HANDLE)pInfo->u.vbox.hUmEvent, pInfo->u.vbox.u64UmInfo); 6948 6948 AssertNtStatusSuccess(Status); 6949 6949 if (Status == STATUS_SUCCESS) 6950 6950 { 6951 if (pInfo-> crVersionMajor || pInfo->crVersionMinor)6951 if (pInfo->u.vbox.crVersionMajor || pInfo->u.vbox.crVersionMinor) 6952 6952 { 6953 6953 if (pDevExt->f3DEnabled) … … 6956 6956 { 6957 6957 int rc = VBoxMpCrCtlConConnect(pDevExt, &pDevExt->CrCtlCon, 6958 pInfo-> crVersionMajor, pInfo->crVersionMinor,6958 pInfo->u.vbox.crVersionMajor, pInfo->u.vbox.crVersionMinor, 6959 6959 &pContext->u32CrConClientID); 6960 6960 if (RT_SUCCESS(rc)) … … 7004 7004 if (Status == STATUS_SUCCESS) 7005 7005 { 7006 if (pInfo-> crVersionMajor || pInfo->crVersionMinor)7006 if (pInfo->u.vbox.crVersionMajor || pInfo->u.vbox.crVersionMinor) 7007 7007 { 7008 7008 if (pDevExt->f3DEnabled) … … 7011 7011 { 7012 7012 int rc = VBoxMpCrCtlConConnect(pDevExt, &pDevExt->CrCtlCon, 7013 pInfo-> crVersionMajor, pInfo->crVersionMinor,7013 pInfo->u.vbox.crVersionMajor, pInfo->u.vbox.crVersionMinor, 7014 7014 &pContext->u32CrConClientID); 7015 7015 if (!RT_SUCCESS(rc)) … … 7052 7052 { 7053 7053 pContext->enmType = pInfo->enmType; 7054 Status = vboxVideoCmCtxAdd(&pDevice->pAdapter->SeamlessCtxMgr, &pContext->CmContext, (HANDLE)pInfo-> hUmEvent, pInfo->u64UmInfo);7054 Status = vboxVideoCmCtxAdd(&pDevice->pAdapter->SeamlessCtxMgr, &pContext->CmContext, (HANDLE)pInfo->u.vbox.hUmEvent, pInfo->u.vbox.u64UmInfo); 7055 7055 if (!NT_SUCCESS(Status)) 7056 7056 {
Note:
See TracChangeset
for help on using the changeset viewer.