VirtualBox

Ignore:
Timestamp:
Sep 26, 2018 11:55:47 AM (6 years ago)
Author:
vboxsync
Message:

Main,Devices: Graphics controller updates. bugref:8893

File:
1 edited

Legend:

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

    r74135 r74474  
    61846184#ifdef VBOX_WITH_VMSVGA
    61856185                                          "VMSVGAEnabled\0"
     6186                                          "VMSVGAPciId\0"
    61866187                                          "VMSVGAFifoSize\0"
    61876188#endif
     
    62236224    rc = CFGMR3QueryBoolDef(pCfg, "3DEnabled", &pThis->f3DEnabled, false);
    62246225    AssertLogRelRCReturn(rc, rc);
     6226    Log(("VGA: f3DEnabled=%RTbool\n", pThis->f3DEnabled));
    62256227
    62266228#ifdef VBOX_WITH_VMSVGA
     
    62286230    AssertLogRelRCReturn(rc, rc);
    62296231    Log(("VMSVGA: VMSVGAEnabled   = %d\n", pThis->fVMSVGAEnabled));
     6232
     6233    rc = CFGMR3QueryBoolDef(pCfg, "VMSVGAPciId", &pThis->fVMSVGAPciId, false);
     6234    AssertLogRelRCReturn(rc, rc);
     6235    Log(("VMSVGA: VMSVGAPciId   = %d\n", pThis->fVMSVGAPciId));
    62306236
    62316237    rc = CFGMR3QueryU32Def(pCfg, "VMSVGAFifoSize", &pThis->svga.cbFIFO, VMSVGA_FIFO_SIZE);
     
    62576263    {
    62586264        /* Extend our VGA device with VMWare SVGA functionality. */
    6259         PCIDevSetVendorId(&pThis->Dev, PCI_VENDOR_ID_VMWARE);
    6260         PCIDevSetDeviceId(&pThis->Dev, PCI_DEVICE_ID_VMWARE_SVGA2);
     6265        if (pThis->fVMSVGAPciId)
     6266        {
     6267            PCIDevSetVendorId(&pThis->Dev, PCI_VENDOR_ID_VMWARE);
     6268            PCIDevSetDeviceId(&pThis->Dev, PCI_DEVICE_ID_VMWARE_SVGA2);
     6269        }
     6270        else
     6271        {
     6272            PCIDevSetVendorId(&pThis->Dev, 0x80ee);   /* PCI vendor, just a free bogus value */
     6273            PCIDevSetDeviceId(&pThis->Dev, 0xbeef);
     6274        }
    62616275        PCIDevSetSubSystemVendorId(&pThis->Dev, PCI_VENDOR_ID_VMWARE);
    62626276        PCIDevSetSubSystemId(&pThis->Dev, PCI_DEVICE_ID_VMWARE_SVGA2);
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