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

Merged
R0Y00 merged 1 commit from upstream-pr/477 into main 2026-11-22 06:05:26 +00:00
R0Y00 commented 2026-11-22 05:59:08 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T05:59:08Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6539088825 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/477). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T05:59:08Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:43:15 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!471
No description provided.