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:
authorASTROWwwW <astrxwledev@gmail.com>2026-11-23 19:56:00 +0100
committerASTROWwwW <astrxwledev@gmail.com>2026-11-23 19:56:00 +0100
commit49dd74282893cacc0821eb7c0e017f79cc3e784f (patch)
tree4087cacb24edc92fedc38bef3303351d739d8e2d /runtime/test/device_proxy_test.cpp
parentbd6b147b16b62e6903a532084b3e53b89b5a2ad8 (diff)
parentafb14d56c6a1683fae4345702c874a62d9234e71 (diff)
Merge branch 'pr7685' into ladder-frame
# Conflicts: # runtime/shims/d3d12_xs_device.cpp # runtime/shims/d3d12_xs_device.h
Diffstat (limited to 'runtime/test/device_proxy_test.cpp')
-rw-r--r--runtime/test/device_proxy_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/test/device_proxy_test.cpp b/runtime/test/device_proxy_test.cpp
index ba704d6cc..f02d6cd02 100644
--- a/runtime/test/device_proxy_test.cpp
+++ b/runtime/test/device_proxy_test.cpp
@@ -27,6 +27,7 @@
27#include "d3d12_xs_desc_clean.h" 27#include "d3d12_xs_desc_clean.h"
28#include "d3d12_xs_device.h" 28#include "d3d12_xs_device.h"
29#include "shims.h" 29#include "shims.h"
30#include "../src/frame_pacer.h"
30 31
31namespace { 32namespace {
32 33
@@ -455,6 +456,10 @@ int main(int argc, char** argv) {
455 check(hr == S_OK && token2 != 0 && token2 != token, "slot 80 returns a fresh token on the next wait"); 456 check(hr == S_OK && token2 != 0 && token2 != token, "slot 80 returns a fresh token on the next wait");
456 hr = reinterpret_cast<WaitFrameEventFn>(proxy_vtbl[80])(device.Get(), 0, 0, nullptr, 0, nullptr); 457 hr = reinterpret_cast<WaitFrameEventFn>(proxy_vtbl[80])(device.Get(), 0, 0, nullptr, 0, nullptr);
457 check(hr == E_POINTER, "slot 80 refuses a null token with E_POINTER"); 458 check(hr == E_POINTER, "slot 80 refuses a null token with E_POINTER");
459 const auto tokens = rt::d3d12_xs::device_frame_tokens(device.Get());
460 check(tokens && tokens->issued() == token2 && token2 == token + 1,
461 "slot 80 tokens come from the device's frame token source");
462 check(!rt::d3d12_xs::device_frame_tokens(nullptr), "a non-proxy has no frame token source");
458 check(rt::d3d12_xs::device_slot_hits(78) == 1 && rt::d3d12_xs::device_slot_hits(79) == 1 && 463 check(rt::d3d12_xs::device_slot_hits(78) == 1 && rt::d3d12_xs::device_slot_hits(79) == 1 &&
459 rt::d3d12_xs::device_slot_hits(80) == 3, 464 rt::d3d12_xs::device_slot_hits(80) == 3,
460 "slots 78/79/80 hit counters are 1/1/3"); 465 "slots 78/79/80 hit counters are 1/1/3");