Native shader page table drops fully backed pages mapped in fragments #660
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#660
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@fruvs on GitHub · 2026-11-29 22:30 UTC · original
A translated shader can read zero from a fully backed 64 KiB page if the title supplies it as four adjacent 16 KiB mappings. The native page-table builder rounds the start and end of each mapping independently, so none of those fragments contributes a table entry.
A synthetic Metal dispatch reproduces the bad read without any game files. The source and destination live in the same test pool. After splitting the source mapping into four adjacent fragments, the first result is zero instead of 48,880.
The proposed fix lets adjacent virtual mappings supply one page when they refer to contiguous bytes of the same backing pool. It leaves a null page for holes, pool changes and noncontiguous backing offsets. The regression also removes one fragment after a successful dispatch and checks the next dispatch observes the hole.
@fruvs on GitHub · 2026-11-29 22:30 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-29 22:30 UTC · original
Claimed by @fruvs. Open a draft pull request with
Refs #656in its description within 24 hours, or the claim expires.