VirtualBox

Changeset 75939 in vbox


Ignore:
Timestamp:
Dec 4, 2018 9:12:54 AM (6 years ago)
Author:
vboxsync
Message:

Graphics/VMSVGA: return 32, not 1 from SVGA_REG_NUM_DISPLAYS register.
bugref:9170: Implement support for multihead display configurations in VMSVGA device.
The current Linux driver treats the value returned from the
SVGA_REG_NUM_DISPLAYS register as a hard upper limit on the number of guest
displays, so increase it to 32. Now I can enable a second display in an
Ubuntu 18.04 guest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r75723 r75939  
    12181218    case SVGA_REG_NUM_DISPLAYS:        /* (Deprecated) */
    12191219        STAM_REL_COUNTER_INC(&pThis->svga.StatRegNumDisplaysRd);
    1220         /** @todo keep 1? */
    1221         *pu32 = 1;  /* Must return something sensible here otherwise the Linux driver will take a legacy code path without 3d support. */
     1220        /* We must return something sensible here otherwise the Linux driver
     1221         * will take a legacy code path without 3d support.  This number also
     1222         * limits how many screens Linux guests will allow. */
     1223        *pu32 = 32;
    12221224        break;
    12231225
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