VirtualBox

Changeset 51648 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Jun 18, 2014 12:13:53 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94409
Message:

vga: legacy state load fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r51633 r51648  
    18211821            if (u32Version > VGA_SAVEDSTATE_VERSION_WDDM)
    18221822            {
     1823#define VBOX_VHWA_SOLARIS_ARCH "solaris."
     1824
     1825                bool fLoadCommands;
     1826
     1827                if (u32Version < VGA_SAVEDSTATE_VERSION_FIXED_PENDVHWA)
     1828                {
     1829                    const char *pcszOsArch = SSMR3HandleHostOSAndArch(pSSM);
     1830                    Assert(pcszOsArch);
     1831                    fLoadCommands = !pcszOsArch || RTStrNCmp(pcszOsArch, VBOX_VHWA_SOLARIS_ARCH, sizeof (VBOX_VHWA_SOLARIS_ARCH) - 1);
     1832                }
     1833                else
     1834                    fLoadCommands = true;
     1835
    18231836#ifdef VBOX_WITH_VIDEOHWACCEL
    18241837                uint32_t cbCmd = sizeof (VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM); /* maximum cmd size */
     
    18351848                    vbvaVHWAHHCommandRelease(pCmd);
    18361849                    AssertRCReturn(rc, rc);
    1837                     bool fLoadCommands = false;
    1838 
    1839                     if (u32Version < VGA_SAVEDSTATE_VERSION_FIXED_PENDVHWA)
    1840                     {
    1841                         /* prev versions have a bug that does not allow to distinguish between the sate made with VHWA not available (on solaris box)
    1842                          * and VHWA disabled */
    1843 
    1844                         for (uint32_t i = 0; i < pVGAState->cMonitors; ++i)
    1845                         {
    1846                             if (VhwaData.ab2DOn[i])
    1847                             {
    1848                                 fLoadCommands = true;
    1849                                 break;
    1850                             }
    1851                         }
    1852                     }
    1853                     else
    1854                         fLoadCommands = true;
    18551850
    18561851                    if (fLoadCommands)
     
    18791874                }
    18801875
    1881                 if (u32Version >= VGA_SAVEDSTATE_VERSION_FIXED_PENDVHWA)
     1876                if (fLoadCommands)
    18821877                {
    18831878                    rc = SSMR3GetU32(pSSM, &u32);
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