Preserve committed bytes in sparse texture reads #2062
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2062
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2062"
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?
@FIocker on GitHub · 2026-11-29 08:54 UTC · original
FIocker:contrib/sparse-texture-read→main· +51 −13 · 2 files · 1 commits · merged 2026-11-30 14:12 UTCA texture range can contain both tracked physical views and ordinary committed pages. The sparse reader previously used the tracked views as the whole list of readable ranges whenever at least one view existed, so it silently substituted zeroes for committed bytes between views. The readiness check also treated a partial view-map result as conclusive.
Read the gaps through the existing fault-safe reader and check committed memory when the view map alone cannot prove full coverage. Reserved holes still read as zero. A synthetic Windows allocation test covers ordinary committed data before and between registered views and a reserved hole.
Validation on Windows against upstream
829188e9:cargo test --locked -p victory-gpu --lib texture::title_memory_testspassed all four tests. Gameplay validation is pending.