GPU: keep streamed textures with mapped mip data in the middle #1021
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T16:31:01Z.
The 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.