A list holds the host copy of a texture it reads when the staging was up to date (VICTORY_TEXTURE_HOLD_READS) #1218
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!1218
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1218"
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?
@Steenax6 on GitHub · 2026-11-26 00:26 UTC · original
Steenax6:pr/texture-hold-reads→main· +12 −0 · 1 files · 1 commits · openWhat
texture.rsuploadreturns early when a texture's staging is uploaded and not dirty. A list that uploads a texture holds its host copy through the transition it records; a list that takes the early return records nothing that holds it, although it reads the texture all the same (through a table copied as it is recorded). Between the recording and the moment the list runs, only the sweep's idle time keeps that host copy alive, and withVICTORY_ASYNC_SUBMITa list is sent later than it is recorded. A host copy let go under a list not yet sent is a read of memory that is gone when the list runs.The list now keeps the texture until it is reset (
list.keep), 12 lines.VICTORY_TEXTURE_HOLD_READS=0: not held, as before.Where it comes from
Steenax6/VIctory-NVID (a tree for an RTX 4070 Ti 12 GB, branched from this fork at
f85101b) lost the device in the opening cutscene, 102 to 108 s after the start, in 3 of about 30 runs. The System event log (providernvlddmkm, id 13) says "MMU Fault": a shader read an address that was not there.Two things were closed there in one commit (0d45621):
VICTORY_LEVELS_ON_DEMAND=1here, off by default), so it is not in this pull request; it comes with the one for textures made without their top levels.Which of the two faulted is not known. After both: nine runs through the fault point, no loss, no driver event, frame times unchanged (first room 88 ms before and after).
What I can and cannot say for this tree
4aa6e8c:cargo clippy --workspace --all-targets --lockedand the same with--all-featuresgive exactly the warningsmaingives (11 there, none new).cargo test --workspace --locked: the tests of the modules touched pass;indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fieldsfails here onmainas well, and two WARP tests inwatch.rs/inplace.rsfailed once in a full run and pass when run by name (other builds were running on the machine).host.rs,watch.rsandshadow.rs.IUnknownkept per such read until the list is reset, about 3,000 a second in the cutscene. No change in frame time was measurable in our tree.🤖 Generated with Claude Code
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.