Repository navigation
Tests: the XMA2 voice test accepts no context before Start under Wine - #1557
pablogonz12 wants to merge 1 commit into
Conversation
Windows' XAudio2 reports the head buffer's context before Start; Wine's (FAudio) reports none until the voice runs. Under Wine the test now only requires that GetState never returns XCL's internal token, before Start and while the voice plays.
…README Integrates 10 open upstream PRs on top of upstream/main (c160d86): - xcl-dev#1643: per-queue cpu_writes worker threads (eliminating cross-queue head-of-line stalls) and atomic 64-bit immediate writes - xcl-dev#1618: skip DXC validator where the runtime accepts the BYPASS hash - xcl-dev#1535, xcl-dev#1536: PresentX COPY_SOURCE barrier and sparse upload COMMON state transitions - xcl-dev#1516: route stream graphics PSO creation through tracked path - xcl-dev#1478: avoid taking sparse state lock on resource final Release - xcl-dev#1473: implement S_QUADMASK_B32 and S_QUADMASK_B64 - xcl-dev#1621, xcl-dev#1625: frame clock revalidation and short uncompressed DirectStorage request zero-padding - xcl-dev#1557: accept no buffer context before Start in XMA2 voice test under Wine Verified under GE-Proton11-14 + vkd3d-proton ec20719452e916b: - Release build (x86_64-pc-windows-msvc): ok (32.14s) - Proton unit tests (heap_window_tests, dxil::core_tests, cpu_writes, frame, sparse, present, dstorage, xma2_source_voice, gpu_sparse_vram_descriptors_buffers_and_xmem, gpu_valu_float_and_int): 71 passed, 0 failed, 2 ignored, 0 skipped.
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
Empirical test report (f21f0e9)Commit Hardware / environment
Commands and results
Observed behavior System XAudio2 2.9 created its engine. 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 |
xma2_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 Tests: gpu_sparse_vram_descriptors_buffers_and_xmem fails beside the title-texture tests since #288 #343 and pass alone);main(9e3831e): 721 passed, 6 failed, 21 ignored.gpu_f64_roots,gpu_f64_math_random(Recompiler: v_rcp_f64 and v_rsq_f64 keep NaN, infinities and denormals #530),gpu_nonfused_mad_and_mac_prevent_fma_contraction(Recompiler: v_fma_f32 is not fused on AMD's RDNA1 driver (mad() left unfused) #472, Tests: run the v_fma_f32 control of the no-contraction test on its own #676),gpu_depth_buffer_created_for_unordered_access_is_placed(Tests: assert the refused depth-buffer UAV state on Windows only #1475),pe::tests::parses_own_test_binary_tls(TLS: xcl.exe built with MinGW and lld keeps its TLS directory #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 Tests: the XMA2 voice test accepts no context before Start under Wine #1557 (comment) (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