Tests: verify D3D12.X guard, split, and tracer thunks for game callers #1497
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1497
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1497/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@amazedturnip on GitHub · 2026-11-24 16:57 UTC · original
amazedturnip:xcl/tests-d3d12x-guard-thunks-and-game-caller-routin-164822→main· +361 −0 · 1 files · 1 commits · merged 2026-11-25 19:24 UTCAdd integration contract tests for the raw x64 thunks emitted by
crates/xcl/src/hle/d3d12x/guard.rs(make_guard,make_split,make_layout_split,make_tracer, andmake_call_tracer). Existing inline unit tests only invoke these thunks from non-game runtime callers; this suite maps an executable x64 call trampoline as aMappedModuleto verify game-image suppression, stub recording, dynamic layout routing, return-address preservation across nested thunks, and 12-argument integer/floating-point forwarding.What is in it
crates/xcl/tests/d3d12x_guard_contract.rs: add contract tests using a mapped executable x64 call trampoline to exercise game-image and non-game caller paths formake_guard,make_split,make_layout_split,make_tracer, andmake_call_tracer(including register, XMM0..3, and 8 stack arguments, dynamic layout toggling, return-address preservation across nested splits/guards, and full 64-bit integer and floating-point return preservation).Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=1— 775 passed, 0 failed, 41 ignored (SKIPPED GPU tests: none)Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@ivall on GitHub · 2026-11-25 19:24 UTC · original
Merging: guard, split and tracer thunks for title and runtime callers.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure. This file alone 8 times: no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.