Do not evict placed textures on the assumption that unmapped ends mean an empty range #1958
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1958"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by NotADonky43 on 2026-11-29T04:16:03Z.
Two reclaim paths need evidence that the whole placed texture is absent. The host-pressure sweep uses the streaming estimate (which can return zero for an interior-only Windows mapping), and the periodic dead RT/UAV pass looks only at byte zero. This can classify a partly mapped resource as an unmapped eviction candidate even if a middle page remains. The streaming estimator remains unchanged for its intended callers.
After the existing age and ownership checks, try the title mapping read guard without waiting. Decline to reclaim on any tracked physical/soft view, committed region (including PAGE_NOACCESS), incomplete Windows query, invalid extent, or active remap. Walk by VirtualQuery region, not page. Keep the guard only through detachment, not resource destruction. No change to ordinary age/VRAM eviction policy.
Native Windows regression: reserve three 64 KiB regions, commit only a non-block-aligned interior page, then change its protection and decommit it. Both ends stay uncommitted. The old host-pressure predicate failed the regression; the new check passes and declines reclamation while remapping. Optimized test on main
568c5e5dplus this source change:cargo test --release --locked -p victory-gpu --lib pressure_sweep_keeps_an_interior_page_between_unmapped_ends. This is an eligibility/correctness fix, not an FPS claim or proof that the opening produced this particular sparse layout.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by NotADonky43 on 2026-11-29T04:29:54Z.
Integration check: this exact source change on our cumulative renderer (901559a4, based on
d1486134) passed the full optimized workspace test suite with diagnostics, the explicit fenced D3D12 texture readback, and a warmed RTX 5070 Ti Series X opening through six heavy render reports. The Windows sparse-range regression also ran separately on main568c5e5dplus the patch. Main has since advanced toe1f2eb60with a README-only change. This validates the eligibility fix and combined boot, not a claim that the title reproduced an interior-only mapping or a performance A/B.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.