VirtualBox

Changeset 81291 in vbox


Ignore:
Timestamp:
Oct 15, 2019 8:23:18 PM (5 years ago)
Author:
vboxsync
Message:

Devices/Graphics: LogRel the D3D adapter identifier

File:
1 edited

Legend:

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

    r81205 r81291  
    158158*   Internal Functions                                                                                                           *
    159159*********************************************************************************************************************************/
    160 static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps);
     160static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps, D3DADAPTER_IDENTIFIER9 const *pai9);
    161161
    162162
     
    219219    AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR);
    220220#endif
     221    D3DADAPTER_IDENTIFIER9 ai9;
     222    hr = pState->pD3D9->GetAdapterIdentifier(D3DADAPTER_DEFAULT, 0, &ai9);
     223    AssertReturnStmt(hr == D3D_OK, D3D_RELEASE(pState->pD3D9), VERR_INTERNAL_ERROR);
     224
    221225    hr = pState->pD3D9->GetDeviceCaps(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &pState->caps);
    222     AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR);
    223 
    224     vmsvgaDumpD3DCaps(&pState->caps);
     226    AssertReturnStmt(hr == D3D_OK, D3D_RELEASE(pState->pD3D9), VERR_INTERNAL_ERROR);
     227
     228    vmsvgaDumpD3DCaps(&pState->caps, &ai9);
    225229
    226230    /* Check if INTZ is supported. */
     
    62156219}
    62166220
    6217 static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps)
     6221static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps, D3DADAPTER_IDENTIFIER9 const *pai9)
    62186222{
    62196223    bool const fBufferingSaved = RTLogRelSetBuffering(true /*fBuffered*/);
     6224
     6225    LogRel(("\nD3D9 adapter: %s %RX16:%RX16 [%s, version %d.%d.%d.%d]\n",
     6226            pai9->Description, pai9->VendorId, pai9->DeviceId, pai9->Driver,
     6227            RT_HI_U16(pai9->DriverVersion.HighPart), RT_LO_U16(pai9->DriverVersion.HighPart),
     6228            RT_HI_U16(pai9->DriverVersion.LowPart), RT_LO_U16(pai9->DriverVersion.LowPart)));
    62206229
    62216230    LogRel(("\nD3D device caps: DevCaps2:\n"));
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