Tests: the XMA2 voice test accepts no context before Start under Wine #1557
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!1557
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1557/head"
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?
@pablogonz12 on GitHub · 2026-11-24 17:39 UTC · original
pablogonz12:tests-xma2-voice-wine-context→main· +11 −1 · 1 files · 1 commits · closed without mergingxma2_source_voice_decodes_and_manages_lifetimefails under Wine: right after the two buffers are submitted,GetStatereturnsbuffers_queued2 but a nullpCurrentBufferContext, and the test asserted the head buffer's context (left: 0, right: 12291). The null comes from Wine's own XAudio2 (FAudio): I printed the valueget_statereceives from the original function, before XCL maps the token back, and it is already 0 there. So XCL's mapping is not the cause; the test expected the Windows behaviour. Under Wine the test now only requires that the context is never XCL's internal token, before Start and while the voice plays.What is in it
crates/xcl/src/hle/xaudio2.rs(test only): before Start the context must be the head buffer's on Windows; under Wine (util::under_wine()) it may also be 0. AGetStatesample in the existing playback wait loop checks it is 0 or one of the two contexts.Tested
subprojects/dxil-spirvat master7c048638, DXC 1.9.2609.5, Rust stable, release,x86_64-pc-windows-gnu(llvm-mingw). No Windows build.main9e3831e, passes on this branch.cargo test -p xcl --lib --release --target x86_64-pc-windows-gnu, run under Wine with--test-threads=4, 0SKIPPED:f21f0e9): 722 passed, 5 failed, 21 ignored on one run; 720 passed, 7 failed on another (the extra two,placed_title_textures_share_vram_and_preserve_pixelsandd32s8_targets_take_their_own_size_of_video_memory, are the cross-test interference of #343 and pass alone);main(9e3831e): 721 passed, 6 failed, 21 ignored.gpu_f64_roots,gpu_f64_math_random(#530),gpu_nonfused_mad_and_mac_prevent_fma_contraction(#472, #676),gpu_depth_buffer_created_for_unordered_access_is_placed(#1475),pe::tests::parses_own_test_binary_tls(#464).mainalso fails this test.Regression run
PR descriptioncheck treatscrates/xcl/src/hle/xaudio2.rsas runtime, so it asks for ascripts/smoke.ps1pair. Both blocks below were run by @Toons29 and posted at #1557 (retail title, 60 s,mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time); I did not run them myself. Pasted unedited:main's frames, 100 % of its peak commit, no crash, no device removal.Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 18:50 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
f21f0e9(on its base9e3831e).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: 775 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 776 passed, 0 failed, 41 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).heap_window_out_of_memory_falls_back_to_the_switch_formwas skipped with--skip. It fails on main9e3831etoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWSunset). Reported as #1651.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 19:32 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@Toons29 on GitHub · 2026-11-24 21:43 UTC · original
Regression run of
f21f0e9con the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % 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; I checked the blocks before posting.@JJAutoCompare on GitHub · 2026-11-25 05:20 UTC · original
Empirical test report (
f21f0e9c)Commit
f21f0e9c25ff1375050734b4c61fcb25c01ff60ein PR #1557.Hardware / environment
1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5 (01b62ad47). Cargo used the unoptimized test profile with incremental compilation and debug info disabled.Invoke-ArcTest.ps1with zero Arc GPU mutex hold. The focused test uses XAudio2 and requires no D3D12 device.Commands and results
cargo test --workspace --no-runbuilt the workspace test executables and exited 0.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1,cargo test -p xcl --lib hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime -- --nocaptureexited 0. Rust reported 1 passed, 0 failed, 0 ignored, and 747 filtered out. The log contained 0 uppercaseSKIPPEDmarkers and 1 explicit audio skip. The focused run provided coverage of the changed assertions in 0 tests.Observed behavior
System XAudio2 2.9 created its engine.
CreateMasteringVoicereturned0x80070490on the initial attempt and again after retrying with defaults. The test printedskipping: no audio deviceand returned before creating the XMA2 source voice. Rust counted the early return as a pass.Not tested
The run had no available audio output endpoint. The pre-Start and playback context assertions were unexercised on Windows, and Wine/FAudio behavior remains unverified. The full GPU workspace suite and game smoke runs were omitted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1557-focused.logand published.@pablogonz12 on GitHub · 2026-11-25 11:55 UTC · original
Closing: #890 (stacked: #1698) fixes this XMA2 failure in XCL itself and passed on our Wine setup at
76d2ff7, so loosening the assertion isn't needed. (Claude Code, Claude Sonnet 5.5)Pull request closed