VirtualBox

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


Ignore:
Timestamp:
Jul 15, 2016 11:38:53 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108793
Message:

FE/Qt: removed some dead / wrong code for determining the suggested amount of VRAM

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

Legend:

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

    r61484 r62274  
    36853685#ifdef VBOX_WITH_CRHGSMI
    36863686/* static */
    3687 quint64 VBoxGlobal::required3DWddmOffscreenVideoMemory(const QString &strGuestOSTypeId, int cMonitors /* = 1 */)
    3688 {
    3689     cMonitors = RT_MAX(cMonitors, 1);
    3690     quint64 cbSize = VBoxGlobal::requiredVideoMemory(strGuestOSTypeId, 1); /* why not cMonitors? */
    3691     cbSize += 64 * _1M;
    3692     return cbSize;
    3693 }
    3694 
    3695 /* static */
    36963687bool VBoxGlobal::isWddmCompatibleOsType(const QString &strGuestOSTypeId)
    36973688{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r60362 r62274  
    458458#ifdef VBOX_WITH_CRHGSMI
    459459    static bool isWddmCompatibleOsType(const QString &strGuestOSTypeId);
    460     static quint64 required3DWddmOffscreenVideoMemory(const QString &strGuestOSTypeId, int cMonitors = 1);
    461460#endif /* VBOX_WITH_CRHGSMI */
    462461
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r61381 r62274  
    373373            else if (m_pCheckbox3D->isChecked() && m_fWddmModeSupported)
    374374            {
    375 # if 0
    376                 int cGuestScreenCount = m_pEditorVideoScreenCount->value();
    377                 uNeedBytes += VBoxGlobal::required3DWddmOffscreenVideoMemory(m_guestOSType.GetId(), cGuestScreenCount);
    378                 uNeedBytes = qMin(uNeedBytes, 256 * _1M);
    379 # endif
    380375                uNeedBytes = qMax(uNeedBytes, (quint64) 128 * _1M);
    381376                if ((quint64)m_pEditorVideoMemorySize->value() * _1M < uNeedBytes)
     
    960955    if (m_pCheckbox3D->isChecked() && m_fWddmModeSupported)
    961956    {
    962 # if 0
    963         uNeedMBytes += VBoxGlobal::required3DWddmOffscreenVideoMemory(m_guestOSType.GetId(), cGuestScreenCount) / _1M;
    964         uNeedMBytes = qMin(uNeedMBytes, 256);
    965 # endif
    966957        uNeedMBytes = qMax(uNeedMBytes, (quint64) 128);
    967958        /* No less than 256MB (if possible): */
Note: See TracChangeset for help on using the changeset viewer.

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