VirtualBox

Changeset 104844 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jun 5, 2024 1:59:01 AM (8 months ago)
Author:
vboxsync
Message:

DevVGA,DevPCI,Main: Increased the max VRAM size to 1GB. Experimental. [fix] bugref:10687

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImplConfigX86.cpp

    r104842 r104844  
    446446        uint32_t cVRamMBsPowerOfTwo = RT_MIN(cVRamMBs, 1024); /* 1GB is the absolute max given PCI alignment. */
    447447        if (!RT_IS_POWER_OF_TWO(cVRamMBsPowerOfTwo))
    448             cVRamMBsPowerOfTwo = RT_BIT_32(ASMBitFirstSetU32(cVRamMBsPowerOfTwo)); /* returns [1..32] */
     448            cVRamMBsPowerOfTwo = RT_BIT_32(ASMBitLastSetU32(cVRamMBsPowerOfTwo)); /* returns [1..32] */
    449449        if (cbRamHole / _1M < cVRamMBsPowerOfTwo * 2)
    450450        {
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