VirtualBox

Changeset 106120 in vbox for trunk


Ignore:
Timestamp:
Sep 23, 2024 3:33:12 PM (2 months ago)
Author:
vboxsync
Message:

Devices/Graphics: remove obsolete code. bugref:10717

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp

    r106116 r106120  
    849849}
    850850
    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 }
    868851
    869852static int vmsvgaDXCheckFormatSupport(PVMSVGA3DSTATE pState, SVGA3dSurfaceFormat enmFormat, uint32_t *pu32DevCap)
     
    911894                UINT NumQualityLevels;
    912895                hr = pDevice->CheckMultisampleQualityLevels(dxgiFormat, 2, &NumQualityLevels);
    913                 if (SUCCEEDED(hr) && NumQualityLevels != 0 && dxFormatAllowMultisample(dxgiFormat))
     896                if (SUCCEEDED(hr) && NumQualityLevels != 0)
    914897                    *pu32DevCap |= SVGA3D_DXFMT_MULTISAMPLE;
    915898            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette