Changeset 74474 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA.cpp
- Timestamp:
- Sep 26, 2018 11:55:47 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r74135 r74474 6184 6184 #ifdef VBOX_WITH_VMSVGA 6185 6185 "VMSVGAEnabled\0" 6186 "VMSVGAPciId\0" 6186 6187 "VMSVGAFifoSize\0" 6187 6188 #endif … … 6223 6224 rc = CFGMR3QueryBoolDef(pCfg, "3DEnabled", &pThis->f3DEnabled, false); 6224 6225 AssertLogRelRCReturn(rc, rc); 6226 Log(("VGA: f3DEnabled=%RTbool\n", pThis->f3DEnabled)); 6225 6227 6226 6228 #ifdef VBOX_WITH_VMSVGA … … 6228 6230 AssertLogRelRCReturn(rc, rc); 6229 6231 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)); 6230 6236 6231 6237 rc = CFGMR3QueryU32Def(pCfg, "VMSVGAFifoSize", &pThis->svga.cbFIFO, VMSVGA_FIFO_SIZE); … … 6257 6263 { 6258 6264 /* 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 } 6261 6275 PCIDevSetSubSystemVendorId(&pThis->Dev, PCI_VENDOR_ID_VMWARE); 6262 6276 PCIDevSetSubSystemId(&pThis->Dev, PCI_DEVICE_ID_VMWARE_SVGA2);
Note:
See TracChangeset
for help on using the changeset viewer.