fix(gpu): verify moved-texture bytes before keeping old slot view (VICTORY_KEEP_SHOWN=checked) #280
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/trustno1-coder--VIctory-NVIDIA!280
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-280"
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?
@Mikey970 on GitHub · 2026-11-27 20:40 UTC · original
Mikey970:pr/keep-shown-checked→main· +109 −12 · 1 files · 1 commits · openProblem
With
VICTORY_KEEP_SHOWN=1, a descriptor slot rewritten with a texture of the same format and size at a different address (Kin::Moved) keeps showing the old texture until the new upload runs. That is right when the title moves a texture, but wrong when the streamer reuses a slot for a different texture of the same dimensions/format (e.g. an albedo where a mask or another character's map lived): the surface displays garbage/rainbow-noise texels in the G-buffer albedo until the upload finishes (reproducible on faces during the opening cutscene).Fix
VICTORY_KEEP_SHOWN=checked(opt-in; existing numeric0/1/2defaults unchanged).Kin::Moved,kept_meanwhilecompares the first and last 4 KiB (or the whole buffer under 8 KiB) viacrate::host::read_into. If both ends match, the old texture stays; if they differ or either address is unreadable, the slot falls back to the neutral texture until the new upload completes.Testing
descriptor::host::bake_flip_tests::a_moved_texture_is_kept_only_with_the_same_ends(passed viacargo test -p victory-gpu).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.