- Timestamp:
- Nov 9, 2020 11:21:56 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-savedstate.cpp
r86838 r86839 149 149 static int vmsvga3dLoadVMSVGA3DSURFACEPreMipLevels(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, VMSVGA3DSURFACE *pSurface) 150 150 { 151 typedefstruct VMSVGA3DSURFACEPreMipLevels151 struct VMSVGA3DSURFACEPreMipLevels 152 152 { 153 153 uint32_t id; … … 169 169 SVGA3dTextureFilter autogenFilter; 170 170 uint32_t cbBlock; 171 } VMSVGA3DSURFACEPreMipLevels;171 }; 172 172 173 173 static SSMFIELD const s_aVMSVGA3DSURFACEFieldsPreMipLevels[] = 174 174 { 175 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, id),175 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, id), 176 176 #ifdef VMSVGA3D_OPENGL 177 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, idWeakContextAssociation),177 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, idWeakContextAssociation), 178 178 #else 179 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, idAssociatedContext),180 #endif 181 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, surfaceFlags),182 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, format),179 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, idAssociatedContext), 180 #endif 181 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, surfaceFlags), 182 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, format), 183 183 #ifdef VMSVGA3D_OPENGL 184 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, internalFormatGL),185 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, formatGL),186 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, typeGL),187 #endif 188 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, faces),189 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, cFaces),190 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, multiSampleCount),191 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, autogenFilter),184 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, internalFormatGL), 185 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, formatGL), 186 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, typeGL), 187 #endif 188 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, faces), 189 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, cFaces), 190 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, multiSampleCount), 191 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, autogenFilter), 192 192 #ifdef VMSVGA3D_DIRECT3D 193 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, format), /* Yes, the 'format' field is duplicated. */194 #endif 195 SSMFIELD_ENTRY( VMSVGA3DSURFACEPreMipLevels, cbBlock),193 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, format), /* Yes, the 'format' field is duplicated. */ 194 #endif 195 SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, cbBlock), 196 196 SSMFIELD_ENTRY_TERM() 197 197 }; 198 198 199 VMSVGA3DSURFACEPreMipLevels surfacePreMipLevels;199 struct VMSVGA3DSURFACEPreMipLevels surfacePreMipLevels; 200 200 int rc = pDevIns->pHlpR3->pfnSSMGetStructEx(pSSM, &surfacePreMipLevels, sizeof(surfacePreMipLevels), 0, s_aVMSVGA3DSURFACEFieldsPreMipLevels, NULL); 201 201 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.