Changeset 22215 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Aug 13, 2009 12:41:04 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r21957 r22215 5291 5291 { 5292 5292 vga_save(pSSMHandle, PDMINS_2_DATA(pDevIns, PVGASTATE)); 5293 #ifdef VBOX_WITH_VIDEOHWACCEL 5294 return vbvaVHWASaveStateExec(pDevIns, pSSMHandle); 5295 #else 5293 5296 return VINF_SUCCESS; 5294 } 5295 5297 #endif 5298 } 5299 5300 #ifdef VBOX_WITH_VIDEOHWACCEL 5301 static DECLCALLBACK(int) vgaR3SavePrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 5302 { 5303 return vbvaVHWASaveStatePrep(pDevIns, pSSM); 5304 } 5305 #endif 5296 5306 5297 5307 /** … … 5303 5313 * @param u32Version The data unit version number. 5304 5314 */ 5305 static DECLCALLBACK(int) vgaR3 LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version)5315 static DECLCALLBACK(int) vgaR3xec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version) 5306 5316 { 5307 5317 if (vga_load(pSSMHandle, PDMINS_2_DATA(pDevIns, PVGASTATE), u32Version)) 5308 5318 return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION; 5319 #ifdef VBOX_WITH_VIDEOHWACCEL 5320 return vbvaVHWALoadStateExec(pDevIns, pSSMHandle); 5321 #else 5309 5322 return VINF_SUCCESS; 5323 #endif 5310 5324 } 5311 5325 … … 5546 5560 rc = VERR_INTERNAL_ERROR; 5547 5561 } 5562 #ifdef VBOX_WITH_VIDEOHWACCEL 5563 if(rc == VINF_SUCCESS) 5564 { 5565 rc = vbvaVHWAConstruct(pThis); 5566 Assert(RT_SUCCESS(rc)); 5567 } 5568 #endif 5548 5569 } 5549 5570 else … … 5922 5943 /* save */ 5923 5944 rc = PDMDevHlpSSMRegister(pDevIns, pDevIns->pDevReg->szDeviceName, iInstance, VGA_SAVEDSTATE_VERSION, 5924 sizeof(*pThis), NULL, vgaR3SaveExec, NULL, NULL, vgaR3LoadExec, NULL); 5945 sizeof(*pThis), 5946 #ifdef VBOX_WITH_VIDEOHWACCEL 5947 NULL, vgaR3SaveExec, NULL, 5948 #else 5949 NULL, vgaR3SaveExec, NULL, 5950 #endif 5951 NULL, vgaR3xec, NULL); 5925 5952 if (RT_FAILURE(rc)) 5926 5953 return rc; -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r20444 r22215 453 453 # ifdef VBOX_WITH_VIDEOHWACCEL 454 454 int vbvaVHWACommandCompleteAsynch(PPDMDDISPLAYVBVACALLBACKS pInterface, PVBOXVHWACMD pCmd); 455 456 int vbvaVHWAConstruct (PVGASTATE pVGAState); 457 int vbvaVHWADisable (PVGASTATE pVGAState); 458 int vbvaVHWASaveStatePrep (PPDMDEVINS pDevIns, PSSMHANDLE pSSM); 459 int vbvaVHWASaveStateExec (PPDMDEVINS pDevIns, PSSMHANDLE pSSM); 460 int vbvaVHWALoadStateExec (PPDMDEVINS pDevIns, PSSMHANDLE pSSM); 455 461 # endif 456 462 #endif /* VBOX_WITH_HGSMI */
Note:
See TracChangeset
for help on using the changeset viewer.