VirtualBox

Changeset 37735 in vbox for trunk/src


Ignore:
Timestamp:
Jul 2, 2011 1:24:54 PM (13 years ago)
Author:
vboxsync
Message:

wddm: fix max VRAM size in VM settings GUI

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r37712 r37735  
    38693869       /* Windows guests need offscreen VRAM too for graphics acceleration features: */
    38703870#ifdef VBOX_WITH_CRHGSMI
    3871        if (strGuestOSTypeId == "WindowsVista" || strGuestOSTypeId == "Windows7")
     3871       if (isWddmCompatibleOsType(strGuestOSTypeId))
    38723872       {
    38733873           /* wddm mode, there are two surfaces for each screen: shadow & primary */
     
    44384438    cbSize += 64 * _1M;
    44394439    return cbSize;
     4440}
     4441
     4442/* static */
     4443bool VBoxGlobal::isWddmCompatibleOsType(const QString &strGuestOSTypeId)
     4444{
     4445    return strGuestOSTypeId.startsWith("WindowsVista") || strGuestOSTypeId.startsWith("Windows7") || strGuestOSTypeId.startsWith("Windows2008");
    44404446}
    44414447#endif /* VBOX_WITH_CRHGSMI */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r37470 r37735  
    717717
    718718#ifdef VBOX_WITH_CRHGSMI
     719    static bool isWddmCompatibleOsType(const QString &strGuestOSTypeId);
    719720    static quint64 required3DWddmOffscreenVideoMemory(const QString &strGuestOSTypeId, int cMonitors = 1);
    720721#endif /* VBOX_WITH_CRHGSMI */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r37652 r37735  
    141141    /* Check if WDDM mode supported by the guest OS type: */
    142142    QString strguestOSTypeId = m_guestOSType.GetId();
    143     m_fWddmModeSupported = strguestOSTypeId == "WindowsVista" || strguestOSTypeId == "Windows7";
     143    m_fWddmModeSupported = VBoxGlobal::isWddmCompatibleOsType(strguestOSTypeId);
    144144#endif /* VBOX_WITH_CRHGSMI */
    145145
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