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

Merged
101Leafy merged 4 commits from upstream-pr/1849 into main 2026-11-29 08:16:53 +00:00
101Leafy commented 2026-11-29 00:45:54 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T00:45:54Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5546149966 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1849). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T00:45:54Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
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.

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