GPU: keep streamed textures with mapped mip data in the middle #1023
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!1023
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1023"
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?
@Lkxex on GitHub · 2026-11-25 16:31 UTC · original
Lkxex:fix/texture-mapped-interior→main· +37 −14 · 1 files · 1 commits · openThe indexed texture pass treats mapped_bytes == 0 as a streamed-out resource and drops its host slot. The previous endpoint check returned zero whenever the first and last pages were unavailable, even if pages in the middle of the texture were already readable.
Keep the console-page sampling path when either endpoint is available. When neither endpoint is available, walk virtual memory regions so a fully absent reservation still reads as zero and committed mip data inside it is counted. Exclude no-access and guard regions from the readable-byte total.
The new Windows regression reserves 256 KiB, commits a middle 64 KiB region, and verifies that the staging reader sees its bytes with zeros in the holes. On the original implementation mapped_bytes returned 0. The fixed code returns 65,536, including with VICTORY_COMMITTED_QUERY=1 and a neighboring no-access region. All three title-memory tests passed in both query configurations. The test uses synthetic memory and no title files. Game capture and frame cost of the sparse fallback are unmeasured.
AI-assisted.
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.