VirtualBox

Changeset 86839 in vbox for trunk/src


Ignore:
Timestamp:
Nov 9, 2020 11:21:56 PM (4 years ago)
Author:
vboxsync
Message:

Devices/Graphics: A couple of new commands; a more generic handler for creating a surface; cleaned saved state data for a surface; increased saved state version; possibility to build DX11 backend. bugref:9830 (build fix)

File:
1 edited

Legend:

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

    r86838 r86839  
    149149static int vmsvga3dLoadVMSVGA3DSURFACEPreMipLevels(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, VMSVGA3DSURFACE *pSurface)
    150150{
    151     typedef struct VMSVGA3DSURFACEPreMipLevels
     151    struct VMSVGA3DSURFACEPreMipLevels
    152152    {
    153153        uint32_t            id;
     
    169169        SVGA3dTextureFilter autogenFilter;
    170170        uint32_t            cbBlock;
    171     } VMSVGA3DSURFACEPreMipLevels;
     171    };
    172172
    173173    static SSMFIELD const s_aVMSVGA3DSURFACEFieldsPreMipLevels[] =
    174174    {
    175         SSMFIELD_ENTRY(VMSVGA3DSURFACEPreMipLevels, id),
     175        SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, id),
    176176#ifdef VMSVGA3D_OPENGL
    177         SSMFIELD_ENTRY(VMSVGA3DSURFACEPreMipLevels, idWeakContextAssociation),
     177        SSMFIELD_ENTRY(struct VMSVGA3DSURFACEPreMipLevels, idWeakContextAssociation),
    178178#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),
    183183#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),
    192192#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),
    196196        SSMFIELD_ENTRY_TERM()
    197197    };
    198198
    199     VMSVGA3DSURFACEPreMipLevels surfacePreMipLevels;
     199    struct VMSVGA3DSURFACEPreMipLevels surfacePreMipLevels;
    200200    int rc = pDevIns->pHlpR3->pfnSSMGetStructEx(pSSM, &surfacePreMipLevels, sizeof(surfacePreMipLevels), 0, s_aVMSVGA3DSURFACEFieldsPreMipLevels, NULL);
    201201    if (RT_SUCCESS(rc))
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