VirtualBox

Changeset 71514 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 26, 2018 2:22:19 PM (7 years ago)
Author:
vboxsync
Message:

WDDM: use VGA configuration interface (more)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r71511 r71514  
    814814    VBoxVidPnTargetsInit(pDevExt->aTargets, RT_ELEMENTS(pDevExt->aTargets), 0);
    815815
     816    BOOLEAN f3DSupported = FALSE;
    816817    uint32_t u32 = 0;
    817818    if (VBoxVGACfgAvailable())
    818819    {
     820        VBoxVGACfgQuery(VBE_DISPI_CFG_ID_3D, &u32, 0);
     821        f3DSupported = RT_BOOL(u32);
     822
    819823        VBoxVGACfgQuery(VBE_DISPI_CFG_ID_VMSVGA, &u32, 0);
    820824    }
     825
    821826    pDevExt->enmHwType = u32 ? VBOX_HWTYPE_VMSVGA : VBOX_HWTYPE_CROGL;
     827
     828    if (pDevExt->enmHwType == VBOX_HWTYPE_CROGL)
     829    {
     830        pDevExt->f3DEnabled = VBoxMpCrCtlConIs3DSupported();
     831    }
     832    else
     833    {
     834        pDevExt->f3DEnabled = f3DSupported;
     835    }
    822836}
    823837
     
    11431157            {
    11441158#ifdef VBOX_WITH_CROGL
    1145                 pDevExt->f3DEnabled = VBoxMpCrCtlConIs3DSupported();
    1146 
    11471159                if (pDevExt->f3DEnabled)
    11481160                {
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