Tests: shape of the generated D3D12 and GDK call tables #830
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!830
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-830"
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?
@mastrr9 on GitHub · 2026-11-24 06:23 UTC · original
mastrr9:tests/generated-tables→main· +134 −0 · 1 files · 1 commits · openAdds a test-only suite (
crates/xcl/tests/generated_tables.rs) verifying structural COM invariants on the generatedhle/d3d12_layout.rsandhle/xgameruntime/gdk_table.rstables so regeneration cannot silently shift a live COM vtable slot:IUnknown(QueryInterface,AddRef,Release), extends its parent's vtable prefix in order, and has no parent cyclesslot()first-match semantics)Draw*,Dispatch,Copy*Region,SetPipelineState,ResourceBarrier,SetDescriptorHeaps,ExecuteIndirect,DispatchRays,DispatchMesh, queueSignal/Wait, fence, resourceMap/Unmap/GetGPUVirtualAddress) matchd3d12.hgdk_table::API: uniqueX*function names, non-zero class/interface GUIDs, all slots>= 3, and no two functions colliding on one(class, iface, slot)Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalledc64508fcbab9f6b79f66ffa9cd0e8580f3e295eacargo build --workspace: clean (only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 719 passed, 0 failed, 41 ignored (generated_tables: 6 passed, 0 failed)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Not tested
crates/xcl/tests/generated_tables.rs); no runtime code changed and no retail title run performed.AI use
@ettehn on GitHub · 2026-11-24 06:34 UTC · original
I checked
d3d12_layout.rsatc64508fagainstd3d12.hfrom Windows SDK10.0.26100.0. MSVC x64 compiled assertions for every method offset and the total vtable size of each interface present in both tables. All 2,302 method slots across 80 interfaces matched, and all 80 vtable sizes matched.The SDK header has no definition for the remaining 22 XCL interfaces, so this check leaves those unverified. Coverage was limited to D3D12 interface layout.
OpenAI Codex (GPT-6) assisted with this verification.
@dcastell1 on GitHub · 2026-11-24 06:39 UTC · original
Verified on Windows 11 10.0.26300 with an NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100 stable (MSVC 14.44.35207),
mainatbeaa245+ this PR's test file dropped in unchanged:Nothing else of the tree was touched, and the suite passes natively on Windows (no Wine, no prefix). AI-assisted (opencode): copied the file, built and ran the target.
@milas6669 on GitHub · 2026-11-24 07:02 UTC · original
Test report on
c64508f(PR head; its base ismainbeaa245, which is stillmain; no merge conflict).Tested
NVIDIA GeForce RTX 3070 (32-lane waves), Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0
x86_64-pc-windows-msvc, debugcargo test --workspace --no-fail-fast -- --test-threads=4; the same command onmainbeaa245(this PR's base): 713 passed, 0 failed, 41 ignoredon this head: 719 passed, 0 failed, 41 ignored (+6 over main: the six new tests in
generated_tables.rs, e.g.every_vtable_extends_its_parents,hot_path_slots_match_d3d12_h)SKIPPED (no wave64) on this GPU:
gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareNot tested
scripts/smoke.ps1(test-only diff)AI use
@SlopTart on GitHub · 2026-11-24 07:17 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
c64508fonto mainbeaa245, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 709 passed, 10 failed, 41 ignored. Failures are the known Wine-lane set from my #42 rows plus #718 trio members; nothing here fails because of your change. Call-table shape tests ok, including the D3D12/GDK table sweeps and the console-library layout comparisons (resource_tiling_matches_the_console_library,subresource_copies_match_the_console_library,volume_layouts_and_texels_match_the_console_library,render_target_and_depth_layouts_match).Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@ettehn on GitHub · 2026-11-24 12:48 UTC · original
Follow-up on
b27bd53on native Windows x64 (Rust 1.97.1 MSVC). The sixgenerated_tables.rstests passed in a standalone harness using the PR’s test source and its unmodified table files. Two deliberately broken copies then failed as expected:CloseandResetslots trippedhot_path_slots_match_d3d12_h(slot 10 instead of 9 forClose).XUserDuplicateHandlefrom slot 3 to slot 2 trippedgdk_rows_are_unique_and_past_iunknown.These are targeted table tests. OpenAI Codex (GPT-6.2 Sol) assisted with verification.
@DavidM1911 on GitHub · 2026-11-25 10:38 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.