Tests: verify D3D12.X null device, resource, fence, and PSO stream #2374
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!2374
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2374"
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-25 17:09 UTC · original
amazedturnip:xcl/tests-d3d12x-null-device-and-pso-stream-contract-015603→main· +338 −0 · 1 files · 1 commits · openAdds integration contract tests for the D3D12.X null backend (
crates/xcl/src/hle/d3d12x/null.rs) incrates/xcl/tests/d3d12x_null_contract.rs. Coverssubobject_payloadlayouts andcapture_*_descpointer/stream guards, exported device/blob/root-signature entry points, device queries and feature support, andID3D12Resource,ID3D12Fence,ID3D12DeviceChild, and COM refcounting vtable contracts.What is in it
crates/xcl/tests/d3d12x_null_contract.rs: add contract tests forsubobject_payload(0..=28 and unknown types),capture_graphics_desc/capture_compute_desc/capture_stream_descguards,D3D12XboxCreateDevice/D3D10CreateBlob/debug/root-sig entry points, device queries (GetNodeCount,GetAdapterLuid,GetCustomHeapProperties,GetResourceAllocationInfo,GetCopyableFootprints,CheckFeatureSupportOPTIONS5), resourceMap/GPU VA/GetDesc/GetHeapProperties,FenceSetEventOnCompletion/Signal,DeviceChild::GetDevice, and COM refcounting.Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=2— 1218 passed, 2 failed, 26 ignored (SKIPPED GPU tests: 1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)); pre-existing upstream/main failures excluded: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier)Not tested
AI use
@throny on GitHub · 2026-11-25 17:58 UTC · original
Two contributors checked independently and found that #2006 solves the same problem in a different way: #1607, group D106. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@emirduran707 on GitHub · 2026-11-25 18:13 UTC · original
Independent AMD RDNA4 (native wave64) test report on exact head
e017aa6e01c1751f8cf34ad587f39097f4b79fee(clean detached checkout, no local changes).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1292 passed, 3 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpurefused by per-lane form;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.d3d12x_null_contract.rspassed (entry_points_and_blob_contract,device_queries_and_feature_support,subobject_payload_known_and_unknown_types,resource_fence_device_child_and_refcount,capture_desc_and_stream_guards).main68a284a:gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722) andfuzz_validate_and_gpu_3(seed 1599) on this GPU, plusgpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier(from50a9fde/ #2074).Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 19:12 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
@amazedturnip on GitHub · 2026-11-25 19:14 UTC · original
CI failure was the stale base: this PR head predates upstream/main's #2420 fix (
c828d8c) that correctsa_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierto only count barriers after the entry whole-wave branch. Rebased this PR onto upstream/main (2898511); the test now passes locally (and the 5 new d3d12x_null_contract tests all pass). The one remaining local failure,gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722), is pre-existing on unmodified main per the community report and is unrelated to this PR. On the D106 hint from #1607: this PR adds an integration test file (crates/xcl/tests/d3d12x_null_contract.rs) covering the null backend, device queries, resources, fences, refcounting and stream guards; #2006 pinssubobject_payloadsizes/alignment innull.rs#[cfg(test)]tests. They overlap on thesubobject_payloadcontract but cover different surfaces (one class-wide integration file vs. a focused table test), so both are needed rather than one replacing the other — happy to trim overlap if the other author prefers.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.