Changeset 81632 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Nov 3, 2019 3:49:20 PM (5 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
r80488 r81632 36 36 37 37 /* One would increase this whenever definitions in this file are changed */ 38 #define VBOXVIDEOIF_VERSION 2 138 #define VBOXVIDEOIF_VERSION 22 39 39 40 40 /** @todo VBOXVIDEO_HWTYPE probably needs to be in VBoxVideo.h */ … … 569 569 #endif /* VBOX_WITH_MESA3D */ 570 570 571 #define VBOXWDDM_QAI_CAP_3D 0x00000001 /* 3D is enabled in the VM settings. */ 572 571 573 /* D3DDDICB_QUERYADAPTERINFO::pPrivateDriverData */ 572 574 typedef struct VBOXWDDM_QAI … … 575 577 uint32_t u32Reserved; /* Must be 0. */ 576 578 VBOXVIDEO_HWTYPE enmHwType; /* Hardware type. Determines what kind of data is returned. */ 579 uint32_t u32AdapterCaps; /* VBOXWDDM_QAI_CAP_* */ 577 580 uint32_t cInfos; /* Number of initialized elements in aInfos (equal to number of guest 578 581 * displays). 0 if VBOX_WITH_VIDEOHWACCEL is not defined. */ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r80372 r81632 114 114 pAdapter->u32VBox3DCaps = pAdapterInfo->u.vbox.u32VBox3DCaps; 115 115 pAdapter->AdapterInfo = *pAdapterInfo; 116 pAdapter->f3D = !vboxDispIsDDraw(pOpenData); 116 pAdapter->f3D = RT_BOOL(pAdapterInfo->u32AdapterCaps & VBOXWDDM_QAI_CAP_3D) 117 && !vboxDispIsDDraw(pOpenData); 117 118 #ifdef VBOX_WITH_VIDEOHWACCEL 118 119 pAdapter->cHeads = pAdapterInfo->cInfos; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/gallium/GaDdi.cpp
r81082 r81632 4965 4965 else 4966 4966 { 4967 AssertFailed();4968 4967 memset(pData->pData, 0, sizeof (D3DCAPS9)); 4969 4968 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r81594 r81632 2000 2000 pQAI->u32Version = VBOXVIDEOIF_VERSION; 2001 2001 pQAI->enmHwType = pDevExt->enmHwType; 2002 pQAI->u32AdapterCaps = pDevExt->f3DEnabled ? VBOXWDDM_QAI_CAP_3D : 0; 2002 2003 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 2003 2004 {
Note:
See TracChangeset
for help on using the changeset viewer.