summaryrefslogtreecommitdiffstats
path: root/video/out/gpu
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossy@jrg.systems>2017-12-04 20:11:20 +1100
committerJames Ross-Gowan <rossy@jrg.systems>2017-12-04 20:11:20 +1100
commit9abb710afb8e369eeb3104156c731bd3564abfcd (patch)
treed102ad50a36dccaa77f918f0e6e8e2968e52b789 /video/out/gpu
parent4efe330efba296f6f07089d60087ef4e054bfe04 (diff)
downloadmpv-9abb710afb8e369eeb3104156c731bd3564abfcd.tar.bz2
mpv-9abb710afb8e369eeb3104156c731bd3564abfcd.tar.xz
vo_gpu: d3d11_helpers: use better formatting for PCI IDs
The old format was definitely misleading, since it used an 0x prefix and formatted the device IDs with %d.
Diffstat (limited to 'video/out/gpu')
-rw-r--r--video/out/gpu/d3d11_helpers.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/video/out/gpu/d3d11_helpers.c b/video/out/gpu/d3d11_helpers.c
index ec0c6514da..b96b03a093 100644
--- a/video/out/gpu/d3d11_helpers.c
+++ b/video/out/gpu/d3d11_helpers.c
@@ -181,11 +181,13 @@ bool mp_d3d11_create_present_device(struct mp_log *log,
(((unsigned)selected_level) >> 8) & 0xf);
char *dev_name = mp_to_utf8(NULL, desc.Description);
- mp_verbose(log, "Device: %s\n"
- "VendorId: 0x%04d\n"
- "DeviceId: 0x%04d\n"
+ mp_verbose(log, "Device Name: %s\n"
+ "Device ID: %04x:%04x (rev %02x)\n"
+ "Subsystem ID: %04x:%04x\n"
"LUID: %08lx%08lx\n",
- dev_name, desc.VendorId, desc.DeviceId,
+ dev_name,
+ desc.VendorId, desc.DeviceId, desc.Revision,
+ LOWORD(desc.SubSysId), HIWORD(desc.SubSysId),
desc.AdapterLuid.HighPart, desc.AdapterLuid.LowPart);
talloc_free(dev_name);