tooling: report PSO readiness from shader manifests #256

Merged
RonLogic merged 2 commits from upstream-pr/259 into main 2026-11-21 19:58:50 +00:00
RonLogic commented 2026-11-21 19:36:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-21T19:36:59Z.


Adds a PSO report that joins explicit pipeline stage references against the native SHA-256 and stage in extract_shaders.py manifests. It counts archive records and unique stage/hash pairs separately and reports the first known blocker per pipeline. The root-signature field describes the effective signature after accounting for caller-supplied signatures. Unassessed stages and missing references remain evidence gaps. Passing pixel lowering leaves the pipeline awaiting PSO validation.

The experimental scope is explicit metadata and source-built shaders. The input schema is documented in docs/experiments.md. The optional LLVM pixel probe reuses pixel_aot.disassemble and analyze_shader_instructions from the scanner. This complements the shader-level dashboard in #241 and the DXIL container work in #250 without depending on either PR.

The source-built WARP control uses the compute fixture with its root signature stripped. D3D12 returned 0x80070057 with no signature and 0x00000000 for the same bytecode with the matching signature supplied. The report test uses synthetic references and stubs the LLVM boundary while exercising the existing scanner and lowerer. It includes a mismatched native hash control.

Windows x64 verification at 0289252:

ctest --test-dir out/build/followup --no-tests=error -R '^(pso_|rdna2_tools_check$|pixel_aot_(warp|hardware)$)' -V
python -B tests/docs_links_check.py

All five CTest entries passed, including pixel readback on WARP and RTX 4070. The RDNA 2 suite reported one internal optional LLVM skip. The documentation check passed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6533485374 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/259). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-21T19:36:59Z. --- Adds a PSO report that joins explicit pipeline stage references against the native SHA-256 and stage in `extract_shaders.py` manifests. It counts archive records and unique stage/hash pairs separately and reports the first known blocker per pipeline. The root-signature field describes the effective signature after accounting for caller-supplied signatures. Unassessed stages and missing references remain evidence gaps. Passing pixel lowering leaves the pipeline awaiting PSO validation. The experimental scope is explicit metadata and source-built shaders. The input schema is documented in `docs/experiments.md`. The optional LLVM pixel probe reuses `pixel_aot.disassemble` and `analyze_shader_instructions` from the scanner. This complements the shader-level dashboard in #241 and the DXIL container work in #250 without depending on either PR. The source-built WARP control uses the compute fixture with its root signature stripped. D3D12 returned `0x80070057` with no signature and `0x00000000` for the same bytecode with the matching signature supplied. The report test uses synthetic references and stubs the LLVM boundary while exercising the existing scanner and lowerer. It includes a mismatched native hash control. Windows x64 verification at `0289252`: ```powershell ctest --test-dir out/build/followup --no-tests=error -R '^(pso_|rdna2_tools_check$|pixel_aot_(warp|hardware)$)' -V python -B tests/docs_links_check.py ``` All five CTest entries passed, including pixel readback on WARP and RTX 4070. The RDNA 2 suite reported one internal optional LLVM skip. The documentation check passed.
upstream-sync closed this pull request 2026-11-24 06:42:05 +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!256
No description provided.