gpu: show a partly mapped texture from its first whole level (upstream 4828a79) #43
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!43
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-43"
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?
@Kal0s-design on GitHub · 2026-12-05 16:57 UTC · original
Kal0s-design:port/partly-mapped-texture→main· +134 −3 · 3 files · 1 commits · merged 2026-12-05 18:46 UTCThis brings over upstream 4828a79 by SovietBearz0r unchanged, with the authorship kept.
A placed texture's smaller mip levels sit first in its memory and arrive first. The title's view names the more detailed levels whose memory isn't there yet, and those read as black until the texture is uploaded again about a second later, so buildings show up black and then correct. With this commit, while only part of a placed texture's memory is mapped, its view is clamped to the first level whose bytes are all there, and unclamped once the texture is whole. VICTORY_PARTLY_CLAMP=0 restores the old behaviour. It reuses the same view clamp the levels-on-demand tiles already use.
This may be part of the texture flicker described in #11, though I haven't confirmed that. It applies cleanly on main, the two tests it adds pass along with the existing resource and descriptor tests, and clippy reports nothing in the files it touches.
AI-assisted: yes
🤖 Generated with Claude Code