Preserve committed bytes in sparse texture reads #2062

Manually merged
github merged 1 commit from github-bot/gh-2062 into main 2026-11-30 14:16:55 +00:00 AGit
Owner

@⁠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 UTC

A 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_tests passed all four tests. Gameplay validation is pending.

**@⁠FIocker** on GitHub · 2026-11-29 08:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2062) `FIocker:contrib/sparse-texture-read` → `main` · +51 −13 · 2 files · 1 commits · merged 2026-11-30 14:12 UTC A 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_tests` passed all four tests. Gameplay validation is pending.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 08:56:08 +00:00
github manually merged commit ff3d404288 into main 2026-11-30 14:16:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2062
No description provided.