Diagnostics: renderer port 1, CPU reads too early and memory changed under the card (#379) #408
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!408
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-408"
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?
@Jesper-Andersson on GitHub · 2026-11-27 00:40 UTC · original
Jesper-Andersson:diag-port1-reads→main· +318 −0 · 3 files · 2 commits · draftTwo diagnostics for renderer port 1 (title memory the card reads and writes in place), from looking into #379's artifacting: port 1 together with
VICTORY_SUBMIT_FRAMES=2. Diagnostics builds only. Nothing changes what is drawn or when.What they count
Both are logged per frame next to port 1's own line.
1. CPU steps that read port 1's memory before our shaders' writes there have run (
renderer port 1, reads too early (#379))Shadow::gpu_writesreturns early forplace), so no CPU fill or copy waits for them.Host::in_place_stalecounts the CPU steps of a submission that read them while an unfinished flight writes them, or while a list ahead in the same submission does. The CPU's steps all run before any of the submission's lists.2. Port 1's memory changing under the card (
renderer port 1, memory in place changed under the card (#379))VICTORY_PORT_WATCH_KB), at most 4 MB per submission. Ranges our shaders write are skipped.copy_mapped), so pages that aren't mapped read as zeros instead of faulting.Measured
RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB, Series S + DLSS. Port 1 on, with xmem's half off.
SUBMIT_FRAMES=1(190 lines) and=2(156 lines). Each time a submission was prepared, about 5-7 flights writing in place were unfinished. Artifacts showed as in #379's run I.Cost
VICTORY_PORT_CONSTANTS=1/VICTORY_PORT_ALL=1), and only in diagnostics builds.Checks
cargo build --profile diag -p victory --features diagnosticson main014d52d: builds. The one warning, intexture.rs, was there before this change.cargo xtask policy: asset policy ok, 272 files.Refs #379.
AI use: written with AI assistance (Claude Code). The runs are my own.
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.