VirtualBox

Changeset 104805 in vbox


Ignore:
Timestamp:
May 28, 2024 4:19:55 PM (6 months ago)
Author:
vboxsync
Message:

Devices/Graphics: debug logging

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

Legend:

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

    r103469 r104805  
    15031503    int const h = pMap->cRows;
    15041504
    1505     const int cbBitmap = pMap->cbRow * pMap->cRows * 4;
     1505    int const cbBitmap = pMap->cbRow * pMap->cRows;
     1506    int const cBits = (   pMap->format == SVGA3D_R16G16B16A16_FLOAT
     1507                       || pMap->format == SVGA3D_R32G32B32A32_FLOAT)
     1508                    ? 32
     1509                    : pMap->cbBlock * 8;
    15061510
    15071511    FILE *f = fopen(pszFilename, "wb");
     
    15091513        return VERR_FILE_NOT_FOUND;
    15101514
     1515    /* Always write 32 bit bitmap which can be displayed. */
    15111516#ifdef RT_OS_WINDOWS
    1512     if (pMap->cbBlock == 4)
     1517    if (cBits == 32)
    15131518    {
    15141519        BMPFILEHDR fileHdr;
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp

    r103574 r104805  
    65536553            break;
    65546554        }
     6555        case DXGI_FORMAT_B8G8R8A8_UNORM:
     6556        {
     6557            uint8_t const *pValues = (uint8_t const *)pvElementData;
     6558            Log8(("{ /*8unorm*/  %u, %u, %u, %u },",
     6559                 pValues[0], pValues[1], pValues[2], pValues[3]));
     6560            break;
     6561        }
    65556562        case DXGI_FORMAT_R8G8B8A8_UNORM:
    65566563        {
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