shader: bound and verify two-exit FSSM pixel programs #477

Manually merged
github merged 1 commit from gh-pr/477/head into gh-pr/477/base 2026-11-26 21:54:59 +00:00
Owner

@⁠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 UTC

Interpret 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.1 passed, 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.

**@⁠R0Y00** on GitHub · 2026-11-22 05:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/477) `R0Y00:codex/ps-layout` → `main` · +131 −4 · 3 files · 1 commits · merged 2026-11-22 06:05 UTC Interpret 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.1` passed, 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:54:57 +00:00
github manually merged commit 7b78eab692 into gh-pr/477/base 2026-11-26 21:54:59 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.