HLE: keep DirectStorage file references alive for queued reads #1181
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1181"
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 Marvisak/VIctory. Originally posted by matheusfrta on 2026-11-24T16:21:42Z.
Holds a reference on the IDStorageFile object while a file-backed read is queued or running, matching StatusArray's lifetime handling and DirectStorage's contract that callers may release a file immediately after enqueuing requests. Releases the reference when the read completes or the queue is closed, with a regression test covering early file release.
Imported from Marvisak/VIctory. Originally posted by Aniseto on 2026-11-24T17:38:03Z.
Ran the new test and the whole
dstoragemodule at715293e:Environment: Windows 11 Pro build 26200 x64, Intel Core i5-12400F, 64 GB RAM, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only) driver 32.0.16.2124, Rust 1.98.1 (pinned by
rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.modules::dstorage::tests::releasing_file_after_enqueue_keeps_it_alivepasses and the rest of the module is unaffected. This is a lifetime test with a real file read queued, so it exercises the ownership path the PR changes, not just a mock. Unit-level overall, so the adapter is not the variable; the datapoint is the pinned 1.98.1 toolchain. No test report on this PR yet.Not tested: a title streaming archives through this path (no game data here), RDNA2/RDNA4 and Intel GPUs.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; no game data was used.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:39Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
715293e:cargo test -p victory-hlepasses, 96 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:33:58Z.
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #577. The same fix as #577 (queued reads keep a file reference), less complete and with formatting damage; it also fails to compile on main for the same reason.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed