- Timestamp:
- Sep 23, 2024 3:33:12 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp
r106116 r106120 849 849 } 850 850 851 static int dxFormatAllowMultisample(DXGI_FORMAT dxgiFormat)852 {853 /* Windows 11 guest does not allow multisample flag for a number of formats.854 * D3D11 implementation on non-Windows hosts might return such flag.855 */856 switch (dxgiFormat)857 {858 case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS:859 case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:860 case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:861 case DXGI_FORMAT_X24_TYPELESS_G8_UINT:862 case DXGI_FORMAT_R32G32B32_FLOAT:863 return false;864 default: break;865 }866 return true;867 }868 851 869 852 static int vmsvgaDXCheckFormatSupport(PVMSVGA3DSTATE pState, SVGA3dSurfaceFormat enmFormat, uint32_t *pu32DevCap) … … 911 894 UINT NumQualityLevels; 912 895 hr = pDevice->CheckMultisampleQualityLevels(dxgiFormat, 2, &NumQualityLevels); 913 if (SUCCEEDED(hr) && NumQualityLevels != 0 && dxFormatAllowMultisample(dxgiFormat))896 if (SUCCEEDED(hr) && NumQualityLevels != 0) 914 897 *pu32DevCap |= SVGA3D_DXFMT_MULTISAMPLE; 915 898 }
Note:
See TracChangeset
for help on using the changeset viewer.