GPU: release directly indexed buffer ranges with their heap #67
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/67"
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 fxceless/victory-fork. Originally posted by ryotdev on 2026-11-24T21:06:57Z.
State::heap_buffersstored each heap's directly indexed buffer ranges in a process-wide map keyed by its address. Releasing the heap left the map holding its shadow buffers. A heap allocated at that address could also inherit the previous heap's pass count and stale slot ranges.The host descriptor heap now owns its slot ranges and pass count alongside its buffer-view writes. Its first pass visits every buffer slot. Subsequent passes visit written slots, with the existing full rescan every 16 passes. Other owners, including in-flight lists, keep their own resource references.
Verification
victory-gpuWindows x64 test binary with Rust 1.98.1. The new CPU-only lifetime regression and six neighboring descriptor tests passed on Windows.victory-gpupassed with warnings denied. The repository's asset policy passed.AI-assisted. Validation used synthetic inputs.
Imported from fxceless/victory-fork. Originally posted by adriaespii on 2026-11-24T21:14:29Z.
Independent test run on commit
8a761ec(AMD RDNA4):x86_64-pc-windows-msvc)cargo clippy --workspace --all-targets -- -D warnings: 0 warningscargo test --workspace: 497 passed, 0 failed, 7 ignored (victory-gpu: 111 passed, 0 failed, 1 ignored;victory-shader: 210 passed, 0 failed, 2 ignored)AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.
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.