queue: flights that may write pages land before a page-mapping copy remaps them #631
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!631
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-631"
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?
@KhryptorGraphics on GitHub · 2026-11-28 02:05 UTC · original
KhryptorGraphics:port/open-world-slot→main· +114 −5 · 2 files · 4 commits · merged 2026-11-28 19:39 UTCPorted from Steenax6/VIctory-NVID (GPL-3.0), commit 20315a5, plus one switch of that fork's open-world work. One of a series of ports from sibling forks (#618 to #622).
What changes
CopyPageMappingsBatchX, flights in the air whose shaders may write the batch's addresses land first (host::land_before_remap). Landed after the remap, their writes went to the pages mapped in their place.VICTORY_LAND_BEFORE_REMAP=0turns it off; the source fork has no off switch.VICTORY_REMAP_SYNC=1(off by default). Runs the queues' line before a page-mapping copy. Under the launcher set it withvictory play --set VICTORY_REMAP_SYNC=1.The source fork's texture-slot change (a slot shows a new texture only after its upload ran) is not in this PR: this tree already has its own form of it.
Verification
cargo check -p victory-gpu --target x86_64-pc-windows-msvc --testspasses, with and without--features diagnostics, with no new warnings. This was a cross-check from Linux.No test is added; the source has none for this function.
Before each batch of the title's CopyPageMappingsBatchX calls, after the optional run of the queues' line (VICTORY_REMAP_SYNC=1), the flights in the air whose shaders may write the batch's addresses land first (host::land_before_remap). Landed after the remap, what they wrote went to the pages mapped in their place, another resource's. With the relay the caller waits only until no flight that may write there is in the air or being landed; without it everything in the air is settled, as at a present. With nothing in the air that touches the range nothing is waited for. Ported from Steenax6/VIctory-NVID 20315a5 (GPL-3.0), with its count in the frame-rate line ("pages remapped under flights' writes"). The function is as there. This tree's line of flights holds the same things: `written` is the flights' declared shader writes, which here take in the copies done on the card (VICTORY_CARD_STEPS: their list declares the destination) and the texture read-backs; `settling` and the thread that lands flights work `written` out anew the same way. Not as there: that fork lands unconditionally. Here it is on by default and VICTORY_LAND_BEFORE_REMAP=0 leaves it out, because it changes what every page-mapping copy does and was not run in the game here. The remap_sync note, which said this tree lacks the step, says what holds now. That fork has no test for it; none added. The call holds none of our locks (not CARD_WORK, not QUEUE_ORDER, not the submission lock): it is made from the title's thread as the settle for a fence is. It is not reachable from the thread that lands flights or the helper thread, which it would wait for. Checked only by cargo check for x86_64-pc-windows-msvc with --tests, with and without the diagnostics feature (no new warnings). Tests cannot run on this machine and the game was not run.