- Timestamp:
- Dec 11, 2019 1:24:35 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
r82414 r82547 569 569 #endif /* VBOX_WITH_MESA3D */ 570 570 571 #define VBOXWDDM_QAI_CAP_3D 0x00000001 /* 3D is enabled in the VM settings. */ 572 #define VBOXWDDM_QAI_CAP_DXVA 0x00000002 /* DXVA is not disabled in the guest registry. */ 571 #define VBOXWDDM_QAI_CAP_3D 0x00000001 /* 3D is enabled in the VM settings. */ 572 #define VBOXWDDM_QAI_CAP_DXVA 0x00000002 /* DXVA is not disabled in the guest registry. */ 573 #define VBOXWDDM_QAI_CAP_DXVAHD 0x00000004 /* DXVA-HD is not disabled in the guest registry. */ 574 #define VBOXWDDM_QAI_CAP_WIN7 0x00000008 /* User mode driver can report D3D_UMD_INTERFACE_VERSION_WIN7. */ 573 575 574 576 /* D3DDDICB_QUERYADAPTERINFO::pPrivateDriverData */ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r81632 r82547 180 180 pOpenData->pAdapterFuncs->pfnCreateDevice = GaDdiAdapterCreateDevice; 181 181 pOpenData->pAdapterFuncs->pfnCloseAdapter = GaDdiAdapterCloseAdapter; 182 pOpenData->DriverVersion = D3D_UMD_INTERFACE_VERSION_VISTA; 182 pOpenData->DriverVersion = RT_BOOL(pAdapterInfo->u32AdapterCaps & VBOXWDDM_QAI_CAP_WIN7) 183 ? D3D_UMD_INTERFACE_VERSION_WIN7 184 : D3D_UMD_INTERFACE_VERSION_VISTA; 183 185 } 184 186 #endif -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/gallium/GaWddm.cpp
r82416 r82547 801 801 #endif 802 802 803 HRESULT GaWddmGetD3D9Caps(IDirect3D9Ex *pD3D9If, D3DCAPS9 *pCaps)803 static HRESULT gaWddmGetD3D9Caps(VBOXWDDM_QAI const *pAdapterInfo, IDirect3D9Ex *pD3D9If, D3DCAPS9 *pCaps) 804 804 { 805 805 HRESULT hr = pD3D9If->GetDeviceCaps(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, pCaps); … … 841 841 pCaps->PS20Caps.Caps |= D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT; 842 842 843 if (RT_BOOL(pAdapterInfo->u32AdapterCaps & VBOXWDDM_QAI_CAP_DXVAHD)) 844 pCaps->Caps3 |= D3DCAPS3_DXVAHD; 845 843 846 #ifdef DEBUG 844 847 vboxDispCheckCapsLevel(pCaps); … … 1168 1171 if (SUCCEEDED(hr)) 1169 1172 { 1170 hr = GaWddmGetD3D9Caps(pD3D9, &pD3D->Caps);1173 hr = gaWddmGetD3D9Caps(pAdapterInfo, pD3D9, &pD3D->Caps); 1171 1174 pD3D9->Release(); 1172 1175 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r82414 r82547 1755 1755 pQAI->u32AdapterCaps = pDevExt->f3DEnabled ? VBOXWDDM_QAI_CAP_3D : 0; 1756 1756 pQAI->u32AdapterCaps |= VBOXWDDM_QAI_CAP_DXVA; /** @todo Fetch from registry. */ 1757 if (VBoxQueryWinVersion(NULL) >= WINVERSION_7) 1758 { 1759 // pQAI->u32AdapterCaps |= VBOXWDDM_QAI_CAP_WIN7; 1760 // pQAI->u32AdapterCaps |= VBOXWDDM_QAI_CAP_DXVAHD; /** @todo Fetch from registry. */ 1761 } 1762 1757 1763 static int cLoggedCaps = 0; 1758 1764 if (cLoggedCaps < 1) 1759 1765 { 1760 1766 ++cLoggedCaps; 1761 LOGREL_EXACT(("WDDM: ad dapter capabilities 0x%08X\n", pQAI->u32AdapterCaps));1767 LOGREL_EXACT(("WDDM: adapter capabilities 0x%08X\n", pQAI->u32AdapterCaps)); 1762 1768 } 1769 1763 1770 if (pDevExt->enmHwType == VBOXVIDEO_HWTYPE_VBOX) 1764 1771 {
Note:
See TracChangeset
for help on using the changeset viewer.