DSP: the reverb convolver passes the host checks (rebased #240) #2483
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2483
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2483"
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?
@kais7654 on GitHub · 2026-11-25 14:37 UTC · original
kais7654:dsp/reverb-on-windows→main· +557 −16 · 5 files · 3 commits · openThe reverb convolver of #240 (@Quat3rnion, commit author preserved),
rebased onto main
940d32fand unblocked on the checks the CI enforces.#240's head fails the check job on clippy -D warnings: five warnings in
the new code (two needless_range_loop in dsp_convolve.rs, dead_code on
resetandencode_ir— their only callers are the tests, so both arecfg(test) now — an undocumented unsafe block in dsp.rs, and a doubled
f32 cast). All five are fixed in the second commit; the convolution
itself is untouched.
Commits:
c3b3c64— #240's change as it is (FFT convolver decodes the console'spartitioned frequency-domain IR; FFT/IFFT streams still silence);
dynamic_slots_are_held_until_released and
lists_share_a_table_and_copies_keep_their_views fail on a heap-capped
host otherwise.
Verified on an RTX 5070 Laptop GPU, Windows 11, driver 616.87:
cargo clippy --workspace --all-targets [--all-features] --locked -- -D warningspasses,cargo test -p victory-hleis 150 passed / 0failed (the seven convolver tests and the two
XDspActivate/XDspSubmitCommand end-to-end ones included), and the
victory-gpu suite passes on a host that caps its heaps. Not verified:
audio against the real title (no retail package here) — the same limits
#240 declared.
AI-assisted (Mistral Vibe).
@oni-swr on GitHub · 2026-11-25 14:58 UTC · original
Independent Windows verification (CPU + software WARP only; no hardware GPU)
22bfa498d3ada1211a5c45804dc42e748ce4c010;origin/main:940d32f69b22265690a0b5a15d6ded572ba33baf(merge base = origin/main;git merge-treeclean)VICTORY_D3D12_WARP=1with--features diagnostics(that is what makesvictory-gpupickwarp_adapter(), i.e. Microsoft Basic Render Driver 0x1414; the tests do not print the adapter id).Results:
cargo test -p victory-hle --lib --locked -- --test-threads=1: 150 passed, 0 failed, 0 ignored. This includes the newdsp::tests::convolution_through_the_api_returns_wet_audio,convolution_stream_as_the_title_drives_it, and all 6dsp_convolve::tests.cargo test -p victory-gpu --lib --locked --features diagnostics -- --test-threads=1(WARP): 146 passed, 0 failed, 2 ignored.descriptor::host::tests::dynamic_slots_are_held_until_releasedpasses on WARP. Note WARP does not cap its heap, so the new "device caps its heap" skip branches in the touchedhost.rs/memory.rstests are not exercised here (they only matter on NVIDIA-style capped hosts).cargo clippy -p victory-hle -p victory-gpu --all-targets --locked -- -D warnings: clean.cargo xtask policy:asset policy: 183 files ok.Diff review (by inspection, not covered by a run):
XDspActivatebuilds the IR slice asfrom_raw_parts(desc.ir, desc.ir_floats), butConvolver::newrequiresir.len() >= ir_floats * channelswhenstereo_ir(option bit 8, 2 channels). With a slice of exactlyir_floatsfloats that check fails, so I expect any activation with the stereo-IR option to returnE_INVALIDARG. The unit tests that cover stereo callConvolver::newdirectly with a longer slice, so the API path is not covered. Either the slice should beir_floats * channelslong (ifir_floatsis per channel) ornewshould treatir_floatsas the total. Please confirm which the console API means.ir_floatsthat is not a multiple of2 * framessilently drops the trailing partial block (accepted byvalid).encode_ir, so they prove internal consistency, not hardware fidelity.Vecallocations inprocessare already flagged by the PR'sshortcut:comment.Verified by Claude Code (Claude Sonnet 5.5), an AI assistant, on behalf of a maintainer.
@Marvisak on GitHub · 2026-11-25 15:55 UTC · original
Automated triage for the maintainers.
Proposed close: this re-packages two other open PRs, #240 (the convolver, commit
c3b3c64) and #1943 (the descriptor-heap test changes), and adds only the clippy fixes on top. Those fixes are welcome, but they belong on #240 (as a suggestion there or a PR to its branch), where the review is already going on. Splitting the same change across two PRs makes it harder to review.It also still has the problems noted on #240, which the clippy commit does not touch:
Convolver::newdecodes (complex pairs in blocks offrames, the Nyquist bin dropped, one run per channel) has no cited evidence, whileorigin/main's module doc indsp.rssays the layout is unknown. The tests use the PR's ownencode_ir, so they only show that the code agrees with itself.valid()now rejects a null IR andir_floats < 2 * frames, which changes whatXDspActivatereturns, again without evidence.XDspActivatebuilds a slice ofir_floatsfloats, butConvolver::newrequiresir_floats * channelswhen the stereo-IR bit is set, so a stereo stream with that option now getsE_INVALIDARGwheremainaccepts it.dsp.rsanddsp_convolve.rsuse identifiers copied from the console SDK headers. Please reword them.CI: passing. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.
Generated by Claude Code
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.