[vlc-commits] D3D: debug device information

Jean-Baptiste Kempf git at videolan.org
Fri Mar 23 16:49:02 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar 23 16:46:23 2012 +0100| [ce6fb6666b1295cfe0f565e86dd7378682d26262] | committer: Jean-Baptiste Kempf

D3D: debug device information

This is necessary to track the issues we have on XP with some GPU.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce6fb6666b1295cfe0f565e86dd7378682d26262
---

 modules/video_output/msw/direct3d.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 07f697a..ec605c2 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -614,6 +614,15 @@ static int Direct3DOpen(vout_display_t *vd, video_format_t *fmt)
     }
 #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,
                                          DeviceType, sys->hvideownd,
                                          D3DCREATE_SOFTWARE_VERTEXPROCESSING|



More information about the vlc-commits mailing list