GPU: extend HostHeap wraparound search range to cursor bounds (fixes #871) #974
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/974"
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 pushkarreddyy on 2026-11-24T14:36:26Z.
Summary
Extends the second chained wraparound search range in
HostHeap::dynamic()to prevent premature heap exhaustion, resolving #871.Changes
crates/victory-gpu/src/descriptor/host.rs:0..*nextto0..cursor.saturating_add(n - 1).min(end).host_heap_finds_contiguous_run_spanning_cursor_on_wraparound.Verification
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T14:39:38Z.
Review: APPROVED
Tested
c1be75fon Windows 11, RTX 5070, MSVC:cargo test -p victory-gpu -- --test-threads=151 passed, includingdynamic_search_can_find_a_run_across_the_cursor.cargo clippy -p victory-gpu --all-targetsis clean.cursor + n - 1lets the existing run counter (which resets on any discontinuity) find a run that starts before the cursor and ends past it. Runs still can't wrap the physical end, which the "free slot at each end" assertion checks.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Aniseto on 2026-11-24T15:06:39Z.
Ran the new test at
c1be75f: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.descriptor::host::tests::dynamic_search_can_find_a_run_across_the_cursorpasses. This is a unit-level test over the heap search, so the adapter is not the variable; the datapoint is the pinned 1.98.1 toolchain.Not tested: the title run that hit #871 (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 test, wrote this report; no game data was used.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:13:06Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
c1be75f:cargo test -p victory-gpupasses, 51 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 pushkarreddyy on 2026-11-24T15:28:44Z.
Thank you @Aniseto (NVIDIA RTX 5070 Ti) and @Zipettte (AMD Radeon RX 7700 XT) for verifying the wraparound search test across both GPU architectures!