GPU: a window that is one run of a section's pages goes in place through our own view (VICTORY_STRETCH=1) #1127
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/fxceless--victory-fork!1127
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1127"
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?
@FrancescoGelosoEterea on GitHub · 2026-11-25 20:52 UTC · original
FrancescoGelosoEterea:stretch-own-view→main· +149 −25 · 1 files · 1 commits · openThe title maps its streaming heaps one 64 KiB view at a time, and each view is an allocation of its own. So
place_partcannot open them, andlevel()turns view memory down: those windows are copied, refreshed and copied back. Their pages do follow one another in their section, though. This PR opens such a window through a view of our own on the whole section, the same viewVICTORY_BACK_OWN_VIEWmaps:place_foraskscover(). When a window is oneCover::Run(section, offset), it goes to the newplace_stretch.place_stretchrounds the window out to 64 KiB pages and checks that the rounded range is still the same run. It then commits those blocks through our view and opens the heap there withOpenExistingHeapFromAddress1. The shaders read and write the title's bytes directly: no copy, no refresh, no copy-back.own_view()is pulled out ofwrite_own, so both switches share one mapping per section. Theinplacestats line also counts windows placed this way and the ones turned down.The idea is
VICTORY_STRETCHfrom Belobug/VIctory-Belobug-AMD (0434b3a), credit to them. There it works inshadow.rswith a separateMapViewOfFileper stretch. This port reuses the in-place module (cover(),OWN,Placed) instead. It is off by default.Tested
RTX 5070 Ti (16 GB, driver 621.24), Windows 11, a save past the prologue. Three ~7-minute runs in the world, on main
465b94fplus #854 and #834. Every run used the same switches:WIDE_BACK,CARD_BUFFERS_MB=1024,INDIRECT_WINDOW,ASYNC_SUBMIT,QUEUE2,LEVELS_ON_DEMAND,JOIN_PARTS,BACK_OWN_VIEW,INDIRECT_GATHER,CARD_REHASH_RUNSandCOPY_PLAIN.VICTORY_STRETCH=1VICTORY_STRETCH=1againBACK_OWN_VIEWandWIDE_BACKon, copy-back is already about 17 ms a frame, against the 36 ms Belobug started from.STRETCH=1runs ended in a device loss (0x887A0006, about 10 minutes in). Two of four runs without it had the same loss on this merge, so it does not look tied to this switch.Not tested: together with
VICTORY_WINDOW_UPLOADfrom79cfdd9. This branch is rebased on085ee7c(clean cherry-pick, no clippy warning ininplace.rs, 182 of 183 unit tests pass; the one failure,indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields, fails the same way on085ee7cwithout this commit)🤖 Generated with Claude Code
@Filip722 on GitHub · 2026-11-25 23:16 UTC · original
I tested the Address1 path from
e417d0bin a synthetic 2 MiB memory fixture on Bazzite 44, RTX 5060 Laptop 8 GB, NVIDIA 615.78.08 and GE-Proton11-14/vkd3d-protoncae8353ed7959c4+.ID3D12Device13was available. The existing partial import of private anonymous memory passed both CPU-to-GPU and GPU-to-CPU checks at a nonzero offset. With the same writable file mapping flags and ext4 scratch backing used for our #830 test, the own-view commitment required by #1127 returnedERROR_ACCESS_DENIED. In the fixture only, I also tried the underlying Address1 call after that failure. The heap and placed resource were created, but writes in either direction were invisible to the other view. The regular copy remains necessary for this file-backed case.The fixture used generated bytes only. Test and report prepared with assistance from OpenAI Codex.
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.