Late fills: with VICTORY_TEAM_FAST=1, fills of upload memory that only wait for flights are made on a thread of ours behind a queue fence, not waited on the submitting thread (off by default) #1849

Manually merged
github merged 4 commits from github-bot/gh-1849 into main 2026-11-29 08:20:54 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 00:45 UTC · original
101Leafy:nv/fill-beside → main · +205 −20 · 10 files · 4 commits · merged 2026-11-29 08:16 UTC

When a submission's only reads of memory that flights may still write are fills of upload memory, the submitting thread waits until those flights land before it sends.

With VICTORY_TEAM_FAST=1 (and only together with the exact and copy relays), such a submission is prepared without those fills and sent behind a wait on a fence of ours. A thread of ours waits for the landings, makes the fills, and signals the fence. The card still reads the fills only once they are made, and the title's thread goes on. The fetches that land the flights go over the copy queue, not behind that wait.

What can go wrong: a fill takes the title's bytes as they are once the flights landed, not as they were at submission, so anything the title wrote there in between is read too (for example a view's constants a frame early). That is why it is off by default.

**@⁠101Leafy** on GitHub · 2026-11-29 00:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1849) `101Leafy:nv/fill-beside` → `main` · +205 −20 · 10 files · 4 commits · merged 2026-11-29 08:16 UTC When a submission's only reads of memory that flights may still write are fills of upload memory, the submitting thread waits until those flights land before it sends. With VICTORY_TEAM_FAST=1 (and only together with the exact and copy relays), such a submission is prepared without those fills and sent behind a wait on a fence of ours. A thread of ours waits for the landings, makes the fills, and signals the fence. The card still reads the fills only once they are made, and the title's thread goes on. The fetches that land the flights go over the copy queue, not behind that wait. What can go wrong: a fill takes the title's bytes as they are once the flights landed, not as they were at submission, so anything the title wrote there in between is read too (for example a view's constants a frame early). That is why it is off by default.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 00:50:43 +00:00
github-bot force-pushed github-bot/gh-1849 from 29c4250300 to 4dcd64608c 2026-11-29 01:54:38 +00:00 Compare
github manually merged commit fe55d7cfaa into main 2026-11-29 08:20:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1849
No description provided.