VirtualBox

Changeset 106811 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 31, 2024 2:54:58 PM (3 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10767: VM settings / Display page: Add one more condition to 3D acceleration check-box availability status; This time it's about graphical controller feature support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r106810 r106811  
    5353#include "CExtPackManager.h"
    5454#include "CGraphicsAdapter.h"
     55#include "CPlatformProperties.h"
    5556#include "CProgress.h" /* For starting recording. */
    5657#include "CRecordingScreenSettings.h"
     
    640641    /* Check whether WDDM mode supported by the guest OS type: */
    641642    m_f3DAccelerationSupported = UIGuestOSTypeHelpers::isWddmCompatibleOsType(m_strGuestOSTypeId);
     643
     644    /* Additionally make sure 3D acceleration is one of the features for current graphical controller: */
     645    if (m_f3DAccelerationSupported)
     646    {
     647        const KPlatformArchitecture enmArch = optionalFlags().contains("arch")
     648                                            ? optionalFlags().value("arch").value<KPlatformArchitecture>()
     649                                            : KPlatformArchitecture_x86;
     650        CPlatformProperties comPlatformProperties = gpGlobalSession->virtualBox().GetPlatformProperties(enmArch);
     651        const QVector<KGraphicsFeature> features =
     652            comPlatformProperties.GetSupportedGfxFeaturesForType(graphicsControllerTypeCurrent());
     653        m_f3DAccelerationSupported &= features.contains(KGraphicsFeature_Acceleration3D);
     654    }
    642655
    643656    /* Pass whether 3D acceleration is supported into Video Memory Editor: */
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