Commit ce6fb666 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

D3D: debug device information

This is necessary to track the issues we have on XP with some GPU.
parent c8864a0b
...@@ -614,6 +614,15 @@ static int Direct3DOpen(vout_display_t *vd, video_format_t *fmt) ...@@ -614,6 +614,15 @@ static int Direct3DOpen(vout_display_t *vd, video_format_t *fmt)
} }
#endif #endif
/* */
D3DADAPTER_IDENTIFIER9 d3dai;
if (FAILED(IDirect3D9_GetAdapterIdentifier(d3dobj,AdapterToUse,0, &d3dai))) {
msg_Warn(vd, "IDirect3D9_GetAdapterIdentifier failed");
} else {
msg_Dbg(vd, "Direct3d Device: %s %lu %lu %lu", d3dai.Description,
d3dai.VendorId, d3dai.DeviceId, d3dai.Revision );
}
HRESULT hr = IDirect3D9_CreateDevice(d3dobj, AdapterToUse, HRESULT hr = IDirect3D9_CreateDevice(d3dobj, AdapterToUse,
DeviceType, sys->hvideownd, DeviceType, sys->hvideownd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING| D3DCREATE_SOFTWARE_VERTEXPROCESSING|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment