Repository navigation
Tests: verify CreateHeap console fallback and IID retry against host driver - #564
Conversation
|
The exact head Tested
Not tested
AI use
|
towiice
left a comment
There was a problem hiding this comment.
Tested PR head 73cf889 on NVIDIA GeForce GTX 1650 SUPER (Turing / TU116, driver 610.88), Windows 11 build 10.0.26300 (26H2), Rust 1.100.0 (stable-x86_64-pc-windows-gnullvm), DXC v1.9.2609:
cargo test -p xcl --test d3d12_create_heap -- --test-threads=4: 3 passed, 0 failed (1.68 s):unknown_console_iid_falls_back_to_pc_heap_interfacepc_heap_descs_match_host_driverconsole_heap_descs_refused_by_host_are_normalized_by_xcl
All CreateHeap host-driver comparison tests pass on NVIDIA Turing.
|
Tested: Clean head With Not tested: Full workspace suite, release builds, retail titles, or game-data samples ( AI use: OpenCode with GPT-6.2 Sol ran the tests and drafted this report. |
|
Test run of Tested
Review: AMD RDNA4 next to the RX 7600, WARP, RTX 4080 and Intel runs above. The test captures the driver's own Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Update,
Test report: #564 under Wine with vkd3d-proton as the host driver (Linux, NVIDIA)The other runs are native Windows drivers (RX 7600, WARP, RTX 4080, Intel Arc, RX 9060 XT). Under Wine the "host driver" is vkd3d-proton, and there one case of Setup
Result (
To see the other cases, I changed the
With that change the test passes: the four refused cases go through XCL's retry and come back normalized. When the assert is only turned into a print (no Not tested
AI use: Claude Code (Claude Opus 5.5) built the test, ran everything above on the machine above and wrote this report. The results are pasted from those runs. The account owner asked for test reports to be posted and has not reviewed this one. |
73cf889 to
c7b7ebe
Compare
|
Thanks @JoaoPauluu for the Wine/vkd3d-proton report! Updated head \c7b7ebe\ (rebased on \main\ \1a0bbe3): when a permissive host driver accepts a console heap desc directly, the test verifies XCL matches the host instead of requiring a host refusal, while still asserting that at least 4 of the 5 console cases (including \combined_console_heap) are refused by the host and normalized by XCL. Re-verified 3/3 passing on both NVIDIA RTX 5060 and AMD Radeon RDNA2. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Merging: Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
What is in it
Adds a standalone integration test (
crates/xcl/tests/d3d12_create_heap.rs) that verifies XCL'sCreateHeapvtable hook (d3d12x::real::dev_create_heap) andcreator!E_NOINTERFACEfallback directly against the host PC D3D12 driver on the same adapter, with no console files or game data required:ID3D12Device::CreateHeapentry point and adapter LUID befored3d12x::real::init()adopts the device vtable, then verifies both target the same adapter and that theCreateHeapvtable slot is intercepted by XCL.DEFAULT,UPLOAD,READBACK) succeed through both the host driver and XCL with matchingID3D12Heap::GetDesc()values.0x2/0x10/ high bits, unknown heap types outside1..=5, unaligned sizes, non-64 KiB alignments, and a combined console heap) succeed through XCL with normalized PC heap descriptors (known flags only,DEFAULTtype, 64 KiB rounded size, and 64 KiB / 4 MiB alignment).IIDfails on the raw host driver withE_NOINTERFACEand succeeds through XCL'screator!fallback returning a usableID3D12Heap.Tested
cargo test -p xcl --test d3d12_create_heap -- --nocapture: 3 passed, 0 failed, 0 ignored (RX 7600).XCL_ADAPTER=warp cargo test -p xcl --test d3d12_create_heap -- --nocapture: 3 passed, 0 failed, 0 ignored (WARP software renderer).cargo test --workspace -- --test-threads=4: 680 passed, 0 failed, 41 ignored, 0SKIPPED.Not tested
scripts/smoke.ps1not run; test-only PR with no changes undercrates/xcl/src/).AI use
Written and verified with Antigravity (Gemini 4 Carbon); all commands and tests were run locally on this machine's RX 7600 and WARP adapter.