- Timestamp:
- Sep 26, 2018 12:47:25 PM (6 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h
r73097 r74477 38 38 typedef enum VBOXVIDEO_HWTYPE 39 39 { 40 VBOXVIDEO_HWTYPE_ CROGL= 0,40 VBOXVIDEO_HWTYPE_VBOX = 0, 41 41 VBOXVIDEO_HWTYPE_VMSVGA = 1, 42 42 VBOXVIDEO_HWTYPE_32BIT = 0x7fffffff … … 514 514 struct 515 515 { 516 /* VBOXVIDEO_HWTYPE_ CROGL*/516 /* VBOXVIDEO_HWTYPE_VBOX */ 517 517 uint32_t u32VBox3DCaps; /* CR_VBOX_CAP_* */ 518 } crogl;518 } vbox; 519 519 } u; 520 520 } VBOXWDDM_QAI; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r73097 r74477 5802 5802 if (pDevice->pDevice9If) 5803 5803 { 5804 if (pDevice->pAdapter->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)5804 if (pDevice->pAdapter->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 5805 5805 pDevice->pAdapter->D3D.D3D.pfnVBoxWineExD3DDev9Term((IDirect3DDevice9Ex *)pDevice->pDevice9If); 5806 5806 } … … 6572 6572 pAdapter->RtCallbacks = *pOpenData->pAdapterCallbacks; 6573 6573 pAdapter->enmHwType = pAdapterInfo->enmHwType; 6574 if (pAdapter->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)6575 pAdapter->u32VBox3DCaps = pAdapterInfo->u. crogl.u32VBox3DCaps;6574 if (pAdapter->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 6575 pAdapter->u32VBox3DCaps = pAdapterInfo->u.vbox.u32VBox3DCaps; 6576 6576 pAdapter->AdapterInfo = *pAdapterInfo; 6577 6577 #ifdef VBOX_WITH_VIDEOHWACCEL -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.cpp
r72010 r74477 1262 1262 1263 1263 HRESULT hr; 1264 if (pAdapterInfo->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)1264 if (pAdapterInfo->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 1265 1265 hr = vboxDispD3DGlobalDoOpenWine(pD3D); 1266 1266 else -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxUhgsmiKmt.cpp
r73097 r74477 331 331 } 332 332 333 if (Query.enmHwType == VBOXVIDEO_HWTYPE_ CROGL)334 *pu32Caps = Query.u. crogl.u32VBox3DCaps;333 if (Query.enmHwType == VBOXVIDEO_HWTYPE_VBOX) 334 *pu32Caps = Query.u.vbox.u32VBox3DCaps; 335 335 else 336 336 *pu32Caps = 0; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp
r73097 r74477 1182 1182 static NTSTATUS vboxVdmaCrCtlGetDefaultClientId(PVBOXMP_DEVEXT pDevExt, uint32_t *pu32ClienID) 1183 1183 { 1184 if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_ CROGL)1184 if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VBOX) 1185 1185 { 1186 1186 /* Should not be called at all in this case. */ … … 1336 1336 NTSTATUS vboxVdmaTexPresentSetAlloc(PVBOXMP_DEVEXT pDevExt, const VBOXWDDM_ALLOC_DATA *pAllocData) 1337 1337 { 1338 if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_ CROGL)1338 if (pDevExt->enmHwType != VBOXVIDEO_HWTYPE_VBOX) 1339 1339 { 1340 1340 /* Not used in this case. */ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r74236 r74477 816 816 } 817 817 818 pDevExt->enmHwType = u32 ? VBOXVIDEO_HWTYPE_VMSVGA : VBOXVIDEO_HWTYPE_ CROGL;819 820 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)818 pDevExt->enmHwType = u32 ? VBOXVIDEO_HWTYPE_VMSVGA : VBOXVIDEO_HWTYPE_VBOX; 819 820 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 821 821 { 822 822 pDevExt->f3DEnabled = VBoxMpCrCtlConIs3DSupported(); … … 824 824 else 825 825 { 826 pDevExt->f3DEnabled = f3DSupported; 826 /* No supported 3D hardware, Fallback to VBox 2D only. */ 827 pDevExt->enmHwType = VBOXVIDEO_HWTYPE_VBOX; 828 pDevExt->f3DEnabled = FALSE; 827 829 } 828 830 } … … 1149 1151 { 1150 1152 #ifdef VBOX_WITH_CROGL 1151 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)1153 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 1152 1154 { 1153 1155 if (pDevExt->f3DEnabled) … … 1377 1379 1378 1380 #ifdef VBOX_WITH_CROGL 1379 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL&& pDevExt->u32CrConDefaultClientID)1381 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX && pDevExt->u32CrConDefaultClientID) 1380 1382 VBoxMpCrCtlConDisconnect(pDevExt, &pDevExt->CrCtlCon, pDevExt->u32CrConDefaultClientID); 1381 1383 … … 2337 2339 pQAI->u32Version = VBOXVIDEOIF_VERSION; 2338 2340 pQAI->enmHwType = pDevExt->enmHwType; 2339 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)2341 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 2340 2342 { 2341 2343 #ifdef VBOX_WITH_CROGL 2342 pQAI->u. crogl.u32VBox3DCaps = VBoxMpCrGetHostCaps();2344 pQAI->u.vbox.u32VBox3DCaps = VBoxMpCrGetHostCaps(); 2343 2345 #endif 2344 2346 } … … 2855 2857 /* wait for all current allocation-related ops are completed */ 2856 2858 vboxWddmAllocationCleanup(pDevExt, pAlloc); 2857 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL&& pAlloc->hSharedHandle && pAlloc->AllocData.hostID)2859 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX && pAlloc->hSharedHandle && pAlloc->AllocData.hostID) 2858 2860 VBoxVdmaChromiumParameteriCRSubmit(pDevExt, GL_PIN_TEXTURE_CLEAR_CR, pAlloc->AllocData.hostID); 2859 2861 vboxWddmAllocationDestroy(pAlloc); … … 4561 4563 if (pEscape->PrivateDriverDataSize == sizeof (*pEscapeHdr)) 4562 4564 { 4563 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)4565 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 4564 4566 pEscapeHdr->u32CmdSpecific = VBoxMpCrGetHostCaps(); 4565 4567 else … … 6900 6902 } 6901 6903 6902 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)6904 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 6903 6905 { 6904 6906 #ifdef VBOX_WITH_CROGL … … 6951 6953 if (pDevExt->f3DEnabled) 6952 6954 { 6953 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)6955 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 6954 6956 { 6955 6957 int rc = VBoxMpCrCtlConConnect(pDevExt, &pDevExt->CrCtlCon, … … 7006 7008 if (pDevExt->f3DEnabled) 7007 7009 { 7008 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL)7010 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 7009 7011 { 7010 7012 int rc = VBoxMpCrCtlConConnect(pDevExt, &pDevExt->CrCtlCon, … … 7146 7148 7147 7149 #ifdef VBOX_WITH_CROGL 7148 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_ CROGL&& pContext->u32CrConClientID)7150 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX && pContext->u32CrConClientID) 7149 7151 { 7150 7152 VBoxMpCrCtlConDisconnect(pDevExt, &pDevExt->CrCtlCon, pContext->u32CrConClientID); … … 7318 7320 if (bUpdateRectInited && pSource->bVisible) 7319 7321 { 7320 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_CROGL) 7321 VBOXVBVA_OP_WITHLOCK(ReportDirtyRect, pDevExt, pSource, &UpdateRect); 7322 VBOXVBVA_OP_WITHLOCK(ReportDirtyRect, pDevExt, pSource, &UpdateRect); 7322 7323 } 7323 7324 … … 7659 7660 7660 7661 /* Check whether 3D is provided by the host. */ 7661 VBOXVIDEO_HWTYPE enmHwType = VBOXVIDEO_HWTYPE_ CROGL;7662 VBOXVIDEO_HWTYPE enmHwType = VBOXVIDEO_HWTYPE_VBOX; 7662 7663 BOOL f3DSupported = FALSE; 7663 7664 … … 7668 7669 if (VBoxVGACfgQuery(VBE_DISPI_CFG_ID_VERSION, &u32, 0)) 7669 7670 { 7670 LOGREL((" VGA configuration version %d", u32));7671 LOGREL(("WDDM: VGA configuration version %d", u32)); 7671 7672 } 7672 7673 … … 7679 7680 enmHwType = VBOXVIDEO_HWTYPE_VMSVGA; 7680 7681 } 7682 LOGREL(("WDDM: VGA configuration: 3D %d, hardware type %d", f3DSupported, enmHwType)); 7681 7683 } 7682 7684 7683 7685 BOOL fCmdVbva = FALSE; 7684 if (enmHwType == VBOXVIDEO_HWTYPE_ CROGL)7686 if (enmHwType == VBOXVIDEO_HWTYPE_VBOX) 7685 7687 { 7686 7688 /* Try to establish connection to the host 3D service. */ … … 7695 7697 #endif 7696 7698 } 7697 else if (enmHwType == VBOXVIDEO_HWTYPE_VMSVGA)7698 {7699 fCmdVbva = TRUE;7700 }7701 7699 else 7702 7700 { 7703 Status = STATUS_UNSUCCESSFUL; 7701 /* No supported hardware, fallback to VBox 2D only. */ 7702 enmHwType = VBOXVIDEO_HWTYPE_VBOX; 7703 f3DSupported = FALSE; 7704 7704 } 7705 7705
Note:
See TracChangeset
for help on using the changeset viewer.