- Timestamp:
- Jan 4, 2019 1:57:30 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r76553 r76635 2854 2854 vmsvgaSaveExecFifo(pThis, pSSM); 2855 2855 # ifdef VBOX_WITH_VMSVGA3D 2856 vmsvga3dSaveExec(pThis, pSSM); 2856 if (pThis->svga.f3DEnabled) 2857 vmsvga3dSaveExec(pThis, pSSM); 2857 2858 # endif 2858 2859 break; … … 2866 2867 vmsvgaLoadExecFifo(pThis, pLoadState->pSSM, pLoadState->uVersion, pLoadState->uPass); 2867 2868 # ifdef VBOX_WITH_VMSVGA3D 2868 vmsvga3dLoadExec(pThis, pLoadState->pSSM, pLoadState->uVersion, pLoadState->uPass); 2869 if (pThis->svga.f3DEnabled) 2870 vmsvga3dLoadExec(pThis, pLoadState->pSSM, pLoadState->uVersion, pLoadState->uPass); 2869 2871 # endif 2870 2872 break; … … 5367 5369 } 5368 5370 5369 # ifdef VBOX_WITH_VMSVGA3D5370 if (pThis->svga.f3DEnabled)5371 {5372 5371 # ifdef RT_OS_DARWIN /** @todo r=bird: this is normally done on the EMT, so for DARWIN we do that when loading saved state too now. See DevVGA-SVGA3d-shared.h. */ 5373 5372 vmsvga3dPowerOn(pThis); 5374 5373 # endif 5375 5374 5376 VMSVGA_STATE_LOAD LoadState; 5377 LoadState.pSSM = pSSM; 5378 LoadState.uVersion = uVersion; 5379 LoadState.uPass = uPass; 5380 rc = vmsvgaR3RunExtCmdOnFifoThread(pThis, VMSVGA_FIFO_EXTCMD_LOADSTATE, &LoadState, RT_INDEFINITE_WAIT); 5381 AssertLogRelRCReturn(rc, rc); 5382 } 5383 # endif 5375 VMSVGA_STATE_LOAD LoadState; 5376 LoadState.pSSM = pSSM; 5377 LoadState.uVersion = uVersion; 5378 LoadState.uPass = uPass; 5379 rc = vmsvgaR3RunExtCmdOnFifoThread(pThis, VMSVGA_FIFO_EXTCMD_LOADSTATE, &LoadState, RT_INDEFINITE_WAIT); 5380 AssertLogRelRCReturn(rc, rc); 5384 5381 5385 5382 return VINF_SUCCESS; … … 5490 5487 } 5491 5488 5492 # ifdef VBOX_WITH_VMSVGA3D5493 5489 /* 5494 * Must save the 3d statein the FIFO thread.5490 * Must save the some state (3D in particular) in the FIFO thread. 5495 5491 */ 5496 if (pThis->svga.f3DEnabled) 5497 { 5498 rc = vmsvgaR3RunExtCmdOnFifoThread(pThis, VMSVGA_FIFO_EXTCMD_SAVESTATE, pSSM, RT_INDEFINITE_WAIT); 5499 AssertLogRelRCReturn(rc, rc); 5500 } 5501 # endif 5492 rc = vmsvgaR3RunExtCmdOnFifoThread(pThis, VMSVGA_FIFO_EXTCMD_SAVESTATE, pSSM, RT_INDEFINITE_WAIT); 5493 AssertLogRelRCReturn(rc, rc); 5494 5502 5495 return VINF_SUCCESS; 5503 5496 }
Note:
See TracChangeset
for help on using the changeset viewer.