GPU: fix dynamic descriptor wraparound scan, per-heap walk cap, and capped headroom #89
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!89
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/89/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?
@dutch2005 on GitHub · 2026-11-25 13:44 UTC · original
fix/dynamic-descriptor-wraparound→main· +128 −32 · 1 files · 1 commits · closed without mergingSummary
Ports and consolidates dynamic descriptor allocator fixes from upstream forks (
uiliannn/VItoriaBra91ef70/b37344f/a65d054andfxceless/victory-fork#932):find_dynamic_run): Previously(*next..spare).chain(0..*next)missed contiguous free runs that started before*nextand ended after it. Extending the wrapped slice to0..(cursor + n - 1).min(spare)recovers straddling runs while still never wrapping past the end of the array.FAILEDstatic with per-heapfree: AtomicU32(O(1) lock-free capacity check) and per-heapfailed_walks, reset insiderelease()when slots are freed so fragmented misses on one heap never starve other heaps or post-release allocations mid-frame.DYNAMIC_CAPPED): DoubledDYNAMIC_CAPPEDfrom1 << 16to1 << 17on hosts capped atPORTABLE_VIEWS.Verification
cargo clippy -p victory-gpu --no-deps --all-targets --lockedand--all-features(0 warnings oncrates/victory-gpu/src/descriptor/host.rs).cargo test -p victory-gpu --lib -- --test-threads=1 descriptor::host::testson host AMD Radeon RX 6700 XT: all 15 tests passed, including:find_dynamic_run_scans_contiguous_runs_across_cursor_but_not_enddynamic_allocation_finds_contiguous_range_crossing_search_cursorfailed_dynamic_walks_do_not_starve_other_heaps_and_reset_on_release@enriquebruno12 on GitHub · 2026-11-25 14:51 UTC · original
Independently tested on Windows with an RX 9070 XT. All 15 descriptor::host::tests passed single-threaded. I repeated the run with the two new hardware tests set to fail if D3D12 heap creation returned None; all 15 passed again. This confirms both the allocation across the search cursor and recovery after releasing slots. No game files were used.
Pull request closed