VirtualBox

Changeset 100008 in vbox


Ignore:
Timestamp:
May 30, 2023 7:05:05 AM (16 months ago)
Author:
vboxsync
Message:

Devices/Graphics: debug logging and assertions. bugref:9830

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

Legend:

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

    r99688 r100008  
    14551455        return VERR_FILE_NOT_FOUND;
    14561456
     1457#ifdef RT_OS_WINDOWS
     1458    if (pMap->cbBlock == 4)
     1459    {
     1460        BMPFILEHDR fileHdr;
     1461        RT_ZERO(fileHdr);
     1462        fileHdr.uType       = BMP_HDR_MAGIC;
     1463        fileHdr.cbFileSize = sizeof(fileHdr) + sizeof(BITMAPV4HEADER) + cbBitmap;
     1464        fileHdr.offBits    = sizeof(fileHdr) + sizeof(BITMAPV4HEADER);
     1465
     1466        BITMAPV4HEADER hdrV4;
     1467        RT_ZERO(hdrV4);
     1468        hdrV4.bV4Size          = sizeof(hdrV4);
     1469        hdrV4.bV4Width         = w;
     1470        hdrV4.bV4Height        = -h;
     1471        hdrV4.bV4Planes        = 1;
     1472        hdrV4.bV4BitCount      = 32;
     1473        hdrV4.bV4V4Compression = BI_BITFIELDS;
     1474        hdrV4.bV4SizeImage     = cbBitmap;
     1475        hdrV4.bV4XPelsPerMeter = 2835;
     1476        hdrV4.bV4YPelsPerMeter = 2835;
     1477        // hdrV4.bV4ClrUsed       = 0;
     1478        // hdrV4.bV4ClrImportant  = 0;
     1479        hdrV4.bV4RedMask       = 0x00ff0000;
     1480        hdrV4.bV4GreenMask     = 0x0000ff00;
     1481        hdrV4.bV4BlueMask      = 0x000000ff;
     1482        hdrV4.bV4AlphaMask     = 0xff000000;
     1483        hdrV4.bV4CSType        = LCS_WINDOWS_COLOR_SPACE;
     1484        // hdrV4.bV4Endpoints     = {0};
     1485        // hdrV4.bV4GammaRed      = 0;
     1486        // hdrV4.bV4GammaGreen    = 0;
     1487        // hdrV4.bV4GammaBlue     = 0;
     1488
     1489        fwrite(&fileHdr, 1, sizeof(fileHdr), f);
     1490        fwrite(&hdrV4, 1, sizeof(hdrV4), f);
     1491    }
     1492    else
     1493#endif
    14571494    {
    14581495        BMPFILEHDR fileHdr;
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp

    r99831 r100008  
    17411741            break;
    17421742        case SVGA3D_RESOURCE_TEXTURECUBE:
    1743             AssertFailed(); /** @todo test. Probably not applicable to a render target view. */
    17441743            desc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2DARRAY;
    17451744            desc.Texture2DArray.MipSlice = pEntry->desc.tex.mipSlice;
     
    62906289            break;
    62916290        }
     6291        case DXGI_FORMAT_R8G8_UNORM:
     6292        {
     6293            uint8_t const *pValues = (uint8_t const *)pvElementData;
     6294            Log8(("{ 8unorm  %u, %u },",
     6295                 pValues[0], pValues[1]));
     6296            break;
     6297        }
    62926298        default:
    62936299            Log8(("{ ??? DXGI_FORMAT %d },",
     
    75217527
    75227528    /* RTVs are followed by UAVs. */
    7523     Assert(NumRTVs <= pDXContext->svgaDXContext.uavSpliceIndex);
     7529    Assert(NumUAVs == 0 || NumRTVs <= pDXContext->svgaDXContext.uavSpliceIndex);
    75247530
    75257531    ID3D11DepthStencilView *pDepthStencilView = NULL;
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.cpp

    r99688 r100008  
    100100    AssertReturn(pState, VERR_INVALID_STATE);
    101101
    102     LogFunc(("sid=%u surfaceFlags=%#x format=%s (%#x) multiSampleCount=%d autogenFilter=%d, numMipLevels=%d size=(%dx%dx%d)\n",
     102    LogFunc(("sid=%u surfaceFlags=0x%RX64 format=%s (%#x) multiSampleCount=%d autogenFilter=%d, numMipLevels=%d size=(%dx%dx%d)\n",
    103103             sid, surfaceFlags, vmsvgaLookupEnum((int)format, &g_SVGA3dSurfaceFormat2String), format, multisampleCount, autogenFilter,
    104104             numMipLevels, pMipLevel0Size->width, pMipLevel0Size->height, pMipLevel0Size->depth));
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