Tests: verify D3D12.X guard, split, and tracer thunks for game callers #1487
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1497"
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?
Imported from ivall/xcl. Originally posted by amazedturnip on 2026-11-24T16:57:43Z.
Add 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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:36Z.
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!
upstream-sync referenced this pull request2026-11-25 05:07:26 +00:00
Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:24:29Z.
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.
xcl shaders --precompile --only cs --pipelines: access violation in dxcompiler.dll with parallel DXC compiles, not with XCL_DXC_THREADS=1 #2741