Repository navigation
Tests: compare CheckFeatureSupport hook against host D3D12 driver - #547
Conversation
|
Tested exact head
Machine: Windows 11 Home build 26200; AMD Ryzen 5 7500F; NVIDIA GeForce RTX 4070 SUPER 12 GB, driver 610.88; Rust 1.100.0 MSVC; DXC 1.9.2602.17 from Windows SDK 10.0.28000.0; debug profile. AI use: OpenAI Codex with GPT-5 selected the verification scope, ran the commands, and drafted this report; I am posting only the measured results above. |
towiice
left a comment
There was a problem hiding this comment.
Tested PR head 0810130 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_check_feature_support -- --test-threads=4: 3 passed, 0 failed (1.47 s):console_only_formats_match_mapped_pc_formats_and_restore_formatpc_sized_feature_queries_match_host_driveroversized_console_structs_match_host_and_zero_tail
All CheckFeatureSupport host-driver comparison tests pass on NVIDIA Turing.
|
Tested — Clean PR head
Not tested: Release builds, other adapters, native Wave64, D3D12 debug-layer checks, retail titles, or game-data tests ( AI use: OpenCode with GPT-6.2 Sol ran the local tests and drafted this report. No code changes. |
|
Test run of Tested
Review: This adds the first AMD run (NVIDIA and Intel above). The fixture captures the unadopted 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. |
Test report: #547 under Wine with vkd3d-proton as the host driver (Linux, NVIDIA)The other runs here are native Windows drivers. Under Wine, the host driver this test compares XCL with is vkd3d-proton (D3D12 on Vulkan), and the test passes there as well. Setup
Result:
Not tested
AI use: Claude Code (Claude Opus 5.5) built the test, ran it 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 while they were away and has not reviewed this one. |
Empirical test report (0810130)Independent Intel Arc A770 D3D12 verification of PR #547 at detached head Hardware / environment
Commands and results
Observed behavior
Not tested
AI use Verified and published with T3 Code / Antigravity (gemini-4-neon). |
|
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. |
Part of #480.
What is in it
Adds a standalone integration test (
crates/xcl/tests/d3d12_check_feature_support.rs) that compares XCL'sCheckFeatureSupportvtable hook (d3d12x::real) directly against the host PC D3D12 driver on the same adapter, with no console files or game data required:ID3D12Device::CheckFeatureSupportentry point and adapter LUID befored3d12x::real::init()adopts the device vtable, then verifies both point to the same adapter and that vtable slot#13is intercepted by XCL.D3D12_OPTIONSthroughD3D12_OPTIONS13,ARCHITECTURE,ARCHITECTURE1,GPU_VIRTUAL_ADDRESS_SUPPORT,SHADER_MODEL,ROOT_SIGNATURE,SHADER_CACHE,EXISTING_HEAPS,FORMAT_SUPPORT,MULTISAMPLE_QUALITY_LEVELS, andFORMAT_INFO) return the sameHRESULTand payload bytes as the host driver.pc_size + 8, as titles such as XDefiant pass) fail on the raw host driver, succeed through XCL with the host driver's prefix bytes, and zero the trailing console bytes.116..=120) return the host driver's answers for their mapped PC formats (10,45,46,47) while restoring the caller's console format field.Tested
cargo test -p xcl --test d3d12_check_feature_support -- --nocapture: 3 passed, 0 failed, 0 ignored (RX 7600).XCL_ADAPTER=warp cargo test -p xcl --test d3d12_check_feature_support -- --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/).XCL_RAYTRACINGoverrides.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.