VirtualBox

Ignore:
Timestamp:
May 24, 2024 2:15:44 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163351
Message:

Main: Added new API IPlatformProperties::getSupportedVRAMRange() to return the VRAM range of a given graphics controller. bugref:​10693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r99775 r104780  
    11481148    RTPrintf("\n");
    11491149#endif
     1150
     1151    do {
     1152        PlatformArchitecture_T platformArch = PlatformArchitecture_x86;
     1153        ComPtr<IPlatformProperties> platformProperties;
     1154        CHECK_ERROR_BREAK(virtualBox, GetPlatformProperties(platformArch, platformProperties.asOutParam()));
     1155        ULONG uMinMB, uMaxMB, uStrideMB;
     1156        CHECK_ERROR_BREAK(platformProperties, GetSupportedVRAMRange(GraphicsControllerType_VBoxVGA, TRUE /* fAccelerate3DEnabled */, &uMinMB, &uMaxMB, &uStrideMB));
     1157        ASSERT_BREAK(uMinMB && RT_IS_POWER_OF_TWO(uMinMB));
     1158        ASSERT_BREAK(uMaxMB && RT_IS_POWER_OF_TWO(uMaxMB));
     1159        ASSERT_BREAK(uStrideMB && RT_IS_POWER_OF_TWO(uStrideMB));
     1160    } while (0);
    11501161
    11511162#if 1
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette