feat(shader): lower bounded PC-relative jump tables #141
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/141"
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 boykopovar/AnyPS5. Originally posted by SamG-Coder on 2026-09-29T01:49:31Z.
What
Resolve bounded PC-relative shader jump tables and lower proven forward targets to structured branches. Preserve the two loaded destination words and SCC even if the selector is overwritten after the load.
Rebased directly onto upstream
c7fb2575. #111 and the #134 control-flow foundation are now upstream; no unmerged dependency commits remain. One implementation commit:1571ec69.Support remains bounded: s_min_u32, eight-byte stride, PC-relative two-dword loads, forward instruction-boundary targets, at most 256 entries, and every table byte captured. Unsupported or invalid patterns are rejected.
Tested
Windows / RTX 5080,
1571ec69:No physical-console, complete-application, clean-exit or performance claim. The harness stops after capture. Demos, logs, binaries and captures remain outside Git; no application shader assets are included.
Checklist