Trace descriptor heap addresses through masks that preserve the carry #216
No reviewers
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!216
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/216/head"
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?
@Sheffy007 on GitHub · 2026-11-27 01:36 UTC · original
Sheffy007:fix/world-followup→main· +59 −1 · 3 files · 2 commits · merged 2026-11-27 02:01 UTCAddresses one shader refusal tracked in #182. After adding a byte offset to a descriptor heap base, a shader can mask the resulting carry to eight bits. The tracer previously refused the descriptor load because it lost track of the high word. It now looks through a scalar AND if the existing bit analysis proves that the mask preserves every possible input bit. The underlying address still goes through the usual checks.
The synthetic regression reproduced “an address into a descriptor heap with an untracked high half” on upstream. It checks the resulting table offset and covers a mask that discards the carry and an unknown high word. A separate Metal pixel shader test reads the green texture in slot 1 of a heap with red in slot 0, and verifies all 64 output pixels.
Local validation passed for victory-shader, victory-gpu, victory-hle, victory and xtask, Windows-target Clippy, the asset policy and the x86-64 macOS release build. The effect on title shader refusal counts and world lighting has not been measured. #182 remains open.
@LakshanSivakumar on GitHub · 2026-11-27 02:01 UTC · original · approved these changes
Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!