- Timestamp:
- Nov 19, 2019 10:08:29 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r81978 r81980 6739 6739 { 6740 6740 float *pValuesF = (float *)pValues; 6741 Log(("ConstantF %d: value=%d, %d, %d, %d\n", reg + i, (int)(pValuesF[i*4 + 0] * 100.0f), (int)(pValuesF[i*4 + 1] * 100.0f), (int)(pValuesF[i*4 + 2] * 100.0f), (int)(pValuesF[i*4 + 3] * 100.0f))); 6741 Log(("ConstantF %d: value=" FLOAT_FMT_STR ", " FLOAT_FMT_STR ", " FLOAT_FMT_STR ", " FLOAT_FMT_STR "\n", 6742 reg + i, FLOAT_FMT_ARGS(pValuesF[i*4 + 0]), FLOAT_FMT_ARGS(pValuesF[i*4 + 1]), FLOAT_FMT_ARGS(pValuesF[i*4 + 2]), FLOAT_FMT_ARGS(pValuesF[i*4 + 3]))); 6742 6743 break; 6743 6744 } -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r81978 r81980 5706 5706 { 5707 5707 float *pValuesF = (float *)pValues; 5708 Log(("ConstantF %d: value=%d, %d, %d, %d\n", reg + i, (int)(pValuesF[i*4 + 0] * 10000.0f), (int)(pValuesF[i*4 + 1] * 10000.0f), (int)(pValuesF[i*4 + 2] * 10000.0f), (int)(pValuesF[i*4 + 3] * 10000.0f))); 5708 Log(("ConstantF %d: value=" FLOAT_FMT_STR ", " FLOAT_FMT_STR ", " FLOAT_FMT_STR ", " FLOAT_FMT_STR "\n", 5709 reg + i, FLOAT_FMT_ARGS(pValuesF[i*4 + 0]), FLOAT_FMT_ARGS(pValuesF[i*4 + 1]), FLOAT_FMT_ARGS(pValuesF[i*4 + 2]), FLOAT_FMT_ARGS(pValuesF[i*4 + 3]))); 5709 5710 break; 5710 5711 } -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.h
r76565 r81980 44 44 /**@def FLOAT_FMT_STR 45 45 * Format string bits to go with FLOAT_FMT_ARGS. */ 46 #define FLOAT_FMT_STR "% d.%06u"46 #define FLOAT_FMT_STR "%s%u.%06u" 47 47 /** @def FLOAT_FMT_ARGS 48 48 * Format arguments for a float value, corresponding to FLOAT_FMT_STR. 49 49 * @param r The floating point value to format. */ 50 #define FLOAT_FMT_ARGS(r) ( int)(r), ((unsigned)(RT_ABS(r) * 1000000) % 1000000U)50 #define FLOAT_FMT_ARGS(r) (r) >= 0.0f ? "" : "-", (unsigned)RT_ABS(r), (unsigned)(RT_ABS((r) - (unsigned)(r)) * 1000000.0f) 51 51 52 52
Note:
See TracChangeset
for help on using the changeset viewer.