Changeset 91823 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp
- Timestamp:
- Oct 18, 2021 10:12:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp
r91607 r91823 6342 6342 if (pvShaderBytecode) 6343 6343 { 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)); 6363 6345 6364 6346 rc = DXShaderCreateDXBC(&pShader->shaderInfo, &pDXShader->pvDXBC, &pDXShader->cbDXBC); … … 6371 6353 HRESULT hr2 = pBackend->pfnD3DDisassemble(pDXShader->pvDXBC, pDXShader->cbDXBC, 0, NULL, &pBlob); 6372 6354 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())); 6377 6356 else 6378 6357 AssertFailed();
Note:
See TracChangeset
for help on using the changeset viewer.