Native shader page table drops fully backed pages mapped in fragments #656
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by fruvs on 2026-11-29T22:30:22Z.
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.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by fruvs on 2026-11-29T22:30:28Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-29T22:30:37Z.
Claimed by @fruvs. Open a draft pull request with
Refs #656in its description within 24 hours, or the claim expires.