- Timestamp:
- Mar 16, 2022 2:58:00 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150531
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp ¶
r94269 r94272 806 806 } 807 807 else 808 AssertFailedStmt(rc = VERR_NOT_SUPPORTED); 808 { 809 LogFunc(("CheckFormatSupport failed for 0x%08x, hr = 0x%08x\n", dxgiFormat, hr)); 810 rc = VERR_NOT_SUPPORTED; 811 } 809 812 } 810 813 else … … 2062 2065 } 2063 2066 2064 if (SUCCEEDED(hr)) 2067 if ( SUCCEEDED(hr) 2068 && MiscFlags == D3D11_RESOURCE_MISC_SHARED) 2065 2069 { 2066 2070 /* Get the shared handle. */ … … 2742 2746 /* Failure to load the shader disassembler is ignored. */ 2743 2747 int rc2 = RTLdrLoadSystem("D3DCompiler_47", /* fNoUnload = */ true, &pBackend->hD3DCompiler); 2744 AssertRC(rc2);2745 2748 if (RT_SUCCESS(rc2)) 2746 {2747 2749 rc2 = RTLdrGetSymbol(pBackend->hD3DCompiler, "D3DDisassemble", (void **)&pBackend->pfnD3DDisassemble); 2748 AssertRC(rc2);2749 }2750 2750 Log6Func(("Load D3DDisassemble: %Rrc\n", rc2)); 2751 2751 } … … 2773 2773 2774 2774 int rc = dxDeviceCreate(pBackend, &pBackend->dxDevice); 2775 if (RT_SUCCESS(rc)) 2776 { 2777 IDXGIAdapter *pAdapter = NULL; 2778 HRESULT hr = pBackend->dxDevice.pDxgiFactory->EnumAdapters(0, &pAdapter); 2779 if (SUCCEEDED(hr)) 2780 { 2781 DXGI_ADAPTER_DESC desc; 2782 hr = pAdapter->GetDesc(&desc); 2783 if (SUCCEEDED(hr)) 2784 { 2785 char sz[RT_ELEMENTS(desc.Description)]; 2786 for (unsigned i = 0; i < RT_ELEMENTS(desc.Description); ++i) 2787 sz[i] = (char)desc.Description[i]; 2788 LogRelMax(1, ("VMSVGA: Adapter [%s]\n", sz)); 2789 } 2790 2791 pAdapter->Release(); 2792 } 2793 } 2775 2794 return rc; 2776 2795 }
Note:
See TracChangeset
for help on using the changeset viewer.