shader: bound and verify two-exit FSSM pixel programs #477
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!477
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/477/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?
@R0Y00 on GitHub · 2026-11-22 05:59 UTC · original
R0Y00:codex/ps-layout→main· +131 −4 · 3 files · 1 commits · merged 2026-11-22 06:05 UTCInterpret the FSSM v0x101 directory at the pixel extraction boundary. Strip section padding, retain the full two-exit span, and use decoded direct branch targets to distinguish an alternate exit from an unrelated block. Earlier unique-marker fixtures keep their existing behavior. The HLSL translator still checks its own supported program and binding semantics.
Of the 6,189 PS records previously rejected for ambiguous termination, 3,561 have a pair of markers 20 bytes apart. The public regression uses only constructed containers and instructions. It covers genuine dual exits, skipped NOPs, inconsistent extents, missing terminal instructions, misleading literal/metadata markers and out-of-range, interior and disconnected targets.
LLVM 15:
python3 -B tests/pixel_aot_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1passed, including the new controls. On RTX 4060 Laptop and WARP, the copy and day/night tone-map references still match in all six draws (4,096 pixels each, zero maximum channel error).Full local rescan on head
7b78eab: 26,503 stage records, including 12,101 PS. With the same four resource profiles, retrying the next profile after a missing-register KeyError as well as ValueError on both versions, the old extractor accepted 5,912 PS and the new extractor 11,264 (+5,352). It accepted 3,536 of the largest 3,561-record layout. The accepted desktop shaders are still the same two pixel records: DXIL 2 (+0), PSO 2 (+0), reference readback 2 (+0). Six draws on Windows 11 build 26200.9974, RTX 4060 Laptop driver 32.0.16.1656 and WARP 10.0.26100.9818, debug layer enabled; each compared 4,096 pixels / 16,384 channels with zero maximum absolute error. These counts include no game binaries or extracted payloads.