upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/device_proxy_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/test/device_proxy_test.cpp')
-rw-r--r--runtime/test/device_proxy_test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/test/device_proxy_test.cpp b/runtime/test/device_proxy_test.cpp
index 70cae9a89..29975c363 100644
--- a/runtime/test/device_proxy_test.cpp
+++ b/runtime/test/device_proxy_test.cpp
@@ -166,6 +166,15 @@ int main() {
166 if (slots > 67) check(proxy_vtbl[67] != real_vtbl[67], "slot 67 thunk differs from PC CreateProtectedResourceSession1"); 166 if (slots > 67) check(proxy_vtbl[67] != real_vtbl[67], "slot 67 thunk differs from PC CreateProtectedResourceSession1");
167 if (slots > 76) check(proxy_vtbl[76] != real_vtbl[76], "slot 76 thunk differs from PC CreateCommittedResource3"); 167 if (slots > 76) check(proxy_vtbl[76] != real_vtbl[76], "slot 76 thunk differs from PC CreateCommittedResource3");
168 168
169 // The hit counters are for tests and count from the first read or reset, so that a title's calls write no
170 // shared counter. The QueryInterface of the creation above was before that: its flag is set, its hit is not.
171 check(rt::d3d12_xs::device_slot_first_call_seen(0), "slot 0 first-call flag is set by the creation");
172 check(rt::d3d12_xs::device_slot_hits(0) == 0, "slot 0 has no hit before the first read of a counter");
173 device->AddRef();
174 device->Release();
175 check(rt::d3d12_xs::device_slot_hits(1) == 1 && rt::d3d12_xs::device_slot_hits(2) == 1,
176 "slots 1 and 2 count the calls after the first read");
177
169 rt::d3d12_xs::reset_device_proxy_stats(); 178 rt::d3d12_xs::reset_device_proxy_stats();
170 179
171 // QI/refcount behaviour: device interfaces resolve to the same proxy, non-device IIDs do not. 180 // QI/refcount behaviour: device interfaces resolve to the same proxy, non-device IIDs do not.