VirtualBox

Changeset 88835 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 3, 2021 1:25:16 PM (4 years ago)
Author:
vboxsync
Message:

Devices/Graphics: build fix for VBOX_WITH_VMSVGA3D disabled case. bugref:9830

Location:
trunk/src/VBox/Devices/Graphics
Files:
3 edited

Legend:

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

    r88833 r88835  
    34473447
    34483448        LogFlowFunc(("[cid=%d] %s %d\n", (int32_t)idDXContext, vmsvgaR3FifoCmdToString(cmdId), cmdId));
    3449 #ifdef LOG_ENABLED
     3449# ifdef LOG_ENABLED
     3450#  ifdef VBOX_WITH_VMSVGA3D
    34503451        if (SVGA_3D_CMD_BASE <= cmdId && cmdId < SVGA_3D_CMD_MAX)
    34513452        {
     
    34583459            Log7(("\t\t0x%08x\n", ((uint32_t *)pu8Cmd)[1]));
    34593460        }
    3460 #endif
     3461#  endif
     3462# endif
    34613463
    34623464        /* At the end of the switch cbCmd is equal to the total length of the command including the cmdId.
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.h

    r88831 r88835  
    7474# pragma GCC diagnostic pop
    7575#endif
     76
     77/**@def FLOAT_FMT_STR
     78 * Format string bits to go with FLOAT_FMT_ARGS. */
     79#define FLOAT_FMT_STR                  "%s%u.%06u"
     80/** @def FLOAT_FMT_ARGS
     81 * Format arguments for a float value, corresponding to FLOAT_FMT_STR.
     82 * @param   r       The floating point value to format.  */
     83#define FLOAT_FMT_ARGS(r)              (r) >= 0.0f ? "" : "-", (unsigned)RT_ABS(r), (unsigned)(RT_ABS((r) - (unsigned)(r)) * 1000000.0f)
    7684
    7785/* Deprecated commands. They are not included in the VMSVGA headers anymore. */
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.h

    r88831 r88835  
    4040/** Arbitrary upper limit. [0,15] is enough for 2^15=32768x32768. */
    4141#define SVGA3D_MAX_MIP_LEVELS                   16
    42 
    43 
    44 /**@def FLOAT_FMT_STR
    45  * Format string bits to go with FLOAT_FMT_ARGS. */
    46 #define FLOAT_FMT_STR                           "%s%u.%06u"
    47 /** @def FLOAT_FMT_ARGS
    48  * Format arguments for a float value, corresponding to FLOAT_FMT_STR.
    49  * @param   r       The floating point value to format.  */
    50 #define FLOAT_FMT_ARGS(r)                       (r) >= 0.0f ? "" : "-", (unsigned)RT_ABS(r), (unsigned)(RT_ABS((r) - (unsigned)(r)) * 1000000.0f)
    5142
    5243
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