Tests: fence waits without an event and Fence1 query on the null device #1961
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1971"
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 brandostrong on 2026-11-25T00:09:09Z.
Two contract tests for the null D3D12.X device, from public reports that titles wait on fences with a NULL event handle and query
ID3D12Fence1off their fences. The wait must returnS_OKwith the value reached (notE_NOTIMPL) and must set a given event; the fence must answerFence1. Both pass today — they pin the behaviour the reports say titles depend on. Part of the D3D12.X contract line claimed on #1269.What is in it
crates/xcl/src/hle/d3d12x/null.rs:a_fence_wait_without_an_event_returns_when_the_value_is_reached(NULL event →S_OK, value reached; real event gets set) anda_fence_answers_query_interface_for_fence1(IID from the layout table) — tests only, no runtime changeTested
cargo build --workspace+cargo test --workspace -- --test-threads=4onb77bdbe: 988 passed, 0 failed, 45 ignored; 22 SKIPPED, all adapter limits of this wave32 card (the wave64 lowering/comparison GPU tests andheap_window_out_of_memory_falls_back_to_the_switch_form)Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-25T00:25:43Z.
Full-suite run, since this PR has no test report yet. Tested exact head
b77bdbe(on its base62265d3).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 978 passed, 0 failed, 43 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.a_fence_wait_without_an_event_returns_when_the_value_is_reached,a_fence_answers_query_interface_for_fence1.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 987 passed, 0 failed, 45 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main80f4819too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests andconst_and_null_mask_operands_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
Imported from ivall/xcl. Originally posted by brandostrong on 2026-11-25T00:37:52Z.
The diff is only
#[cfg(test)] mod testscode in null.rs — the description check counts it as a runtime change. Atest-onlylabel would waive the smoke requirement (CONTRIBUTING.md, item 3).Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T02:49:20Z.
PR #1971 compatibility verification
Tested detached head
b77bdbe2c79688b73312efc75c0c8f8368687c49on STOR-WINLAB. The diff adds two tests incrates/xcl/src/hle/d3d12x/null.rs.Tested
DoublePrecisionFloatShaderOps=0).d3d12SDKLayers.dllwas unavailable.1.100.0 (0ef1bc386 2026-11-09). The runtime loggeddxcompiler 1.9.2609.5 (01b62ad4)anddxil 1.9.2609.5.XCL_DXC_DIRselected the requested toolchain.cargo build --workspaceandcargo test --workspace --no-runboth succeeded outside the GPU lock with dev and test debug info disabled.cargo test -p xcl hle::d3d12x::null::tests::a_fence_ -- --nocapturereturned 2 passed, 0 failed, 0 ignored with zeroSKIPPEDlines. The null-handle wait returnedS_OKand advanced the completed fence value to 3. A second wait signaled the supplied event.QueryInterfaceforID3D12Fence1returnedS_OKand a non-null pointer.Full workspace suite
cargo test --workspace --no-fail-fast -- --test-threads=4ran once underInvoke-ArcTest.ps1and exited 101. The 20 Cargo summaries inpr1971-suite.logsum to 963 passed, 25 failed, 45 ignored. Both PR tests passed again.CreateComputePipelineStateerror0x80070057across DXIL fuzz, operations, rounding, and recompiler tests. Four other GPU unit failures were assertions on fused FMA overflow, implicit-LOD sampling, the packed FP16 high half, and wave64 pixel reductions.RSSetDepthBiasXexpected green.SKIPPEDlines. Of these, 17 cite unavailable wave64, 3 cite unsupported per-lane FP16-related lowering, 1 cites unavailable driver cache control, and 1 cites unavailable heap windows. The skip lines describe coverage gaps within the raw Cargo outcomes.Not tested
Retail-title smoke, a run on
mainfor baseline comparison, other GPUs, and D3D12 debug-layer coverage.AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1971-suite.logand published this report.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T03:19:40Z.
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!
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T10:26:22Z.
Regression run of
b86dcaf9on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon568e7db7, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 104 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; a script posted this right after the run, with both blocks exactly as printed.Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:32:35Z.
Both tests pass here in review and the CI build is green. One change before the
test-onlylabel and a merge:WaitForSingleObject(ev, INFINITE)would hang the whole suite, and CI, if the null device ever stopped setting the event. Please give it a timeout (10 s, say), so that a regression fails instead.AI use: Claude Code (Claude Opus 5.5) wrote this on the maintainer's behalf.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T06:51:35Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:10:02Z.
Triage (#1607) – head
b86dcafThese are test-only additions in
null.rs. They pin behaviour thatFence_SetEventOnCompletion(NULL event) andQueryInterfacealready have on main.#2374 adds a null-device contract test with SetEventOnCompletion on a real event, but has no NULL-event or
ID3D12Fence1case, so it is not a duplicate.No problems found in the diff. The slot numbers (device #36, fence #0 / #8 / #9) match
null.rs.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.