VirtualBox

Ignore:
Timestamp:
Oct 18, 2021 10:12:46 AM (3 years ago)
Author:
vboxsync
Message:

Devices/Graphics: parser improvements; logging: bugref:9830

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp

    r91607 r91823  
    63426342    if (pvShaderBytecode)
    63436343    {
    6344 #ifdef LOG_ENABLED
    6345         Log(("Shader: cid=%u shid=%u type=%d:\n", pDXContext->cid, pShader->id, pDXShader->enmShaderType));
    6346         uint8_t *pu8 = (uint8_t *)pvShaderBytecode;
    6347         for (uint32_t i = 0; i < pShader->cbData; ++i)
    6348         {
    6349             if ((i % 16) == 0)
    6350             {
    6351                 if (i > 0)
    6352                     Log6((",\n"));
    6353 
    6354                 Log6(("    %#04x", pu8[i]));
    6355             }
    6356             else
    6357             {
    6358                 Log6((", %#04x", pu8[i]));
    6359             }
    6360         }
    6361         Log6(("\n"));
    6362 #endif
     6344        Log(("Shader: cid=%u shid=%u type=%d\n", pDXContext->cid, pShader->id, pDXShader->enmShaderType));
    63636345
    63646346        rc = DXShaderCreateDXBC(&pShader->shaderInfo, &pDXShader->pvDXBC, &pDXShader->cbDXBC);
     
    63716353                HRESULT hr2 = pBackend->pfnD3DDisassemble(pDXShader->pvDXBC, pDXShader->cbDXBC, 0, NULL, &pBlob);
    63726354                if (SUCCEEDED(hr2) && pBlob && pBlob->GetBufferSize())
    6373                 {
    6374                     Log6(("Shader: cid=%u shid=%u type=%d:\n%s\n",
    6375                           pDXContext->cid, pShader->id, pDXShader->enmShaderType, pBlob->GetBufferPointer()));
    6376                 }
     6355                    Log6(("%s\n", pBlob->GetBufferPointer()));
    63776356                else
    63786357                    AssertFailed();
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