tooling: treat pixel disassembly failures as PSO blockers #404

Merged
aadi-varc merged 1 commit from upstream-pr/410 into main 2026-11-22 00:55:30 +00:00
aadi-varc commented 2026-11-22 00:41:54 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by aadi-varc on 2026-11-22T00:41:54Z.


Change

Fixes tools/pso_readiness.py so a pixel shader with disassembly_failed marks its pipeline blocked with first_blocker populated instead of falling into needs_evidence with first_blocker: null.

  • tools/pso_readiness.py: adds "disassembly_failed" alongside "unsupported_opcodes" and "pixel_lowering_rejected" in report(). missing_root_signature still takes precedence; absent manifest entries stay needs_evidence.
  • tests/pso_readiness_check.py: tests both disassembly_failed paths (empty stream and ValueError), first_blocker, precedence, single-scan caching, and needs_evidence.

Independent fix; no open PR edits tools/pso_readiness.py (PR #341 edits an unrelated function in tests/pso_readiness_check.py).

Verification

Commit 6669325 (base 6549244), Ubuntu 24.04 x86_64, Python 3.12.16, LLVM 15.0.7 (libLLVM-15.so.1).

Before/after (tools/pso_readiness.py --llvm libLLVM-15.so.1, synthetic \xff\xff\xff\xff and b"" pixel files):

  • Before (6549244): both status='needs_evidence', first_blocker=None
  • After (6669325): both status='blocked', first_blocker={'reason': 'disassembly_failed', 'stage': 'pixel', 'detail': ...}
./out/pe-env/bin/python -B tests/pso_readiness_check.py
for t in tests/script_state_check.py tests/bcpack_check.py tests/form_coverage_check.py tests/resource_ranges_check.py tests/sgd5_effects_check.py tests/dxcontainer_part_offsets_check.py tests/layout_chunks_check.py tests/dependency_paths_check.py tests/intake/paths_check.py tests/shader_probe_check.py tests/dxil_retarget_check.py tests/rdna2_tools_check.py tests/docs_links_check.py tests/bidi_controls_check.py tests/gpu_report_format_check.py; do ./out/pe-env/bin/python -B "$t"; done
./out/pe-env/bin/python -B tests/pixel_aot_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1
./out/pe-env/bin/python -B tests/ffx_dispatch_aot_check.py llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1
LLVM_LIB=libLLVM-15.so.1 LLVM_MC=llvm-mc-15 LLVM_OBJCOPY=llvm-objcopy-15 ./out/pe-env/bin/python -B tests/rdna2_tools_check.py
  • pso_readiness_check.py: PSO census, evidence states, and native hash control passed
  • All 16 pure-Python + 3 LLVM 15 checks passed (rdna2_tools_check.py w/ LLVM_LIB: 26 tests, 0 skips).
  • Windows C++/HLSL/WARP checks not run locally (relies on build-and-test CI).

Evidence and follow-up

Synthetic inputs only (MIT License). Negative controls: missing-root keeps missing_root_signature ahead of disassembly_failed; absent-record stays needs_evidence.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6536440671 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/410). Originally posted by [aadi-varc](https://github.com/aadi-varc) on 2026-11-22T00:41:54Z. --- ## Change Fixes `tools/pso_readiness.py` so a pixel shader with `disassembly_failed` marks its pipeline `blocked` with `first_blocker` populated instead of falling into `needs_evidence` with `first_blocker: null`. - `tools/pso_readiness.py`: adds `"disassembly_failed"` alongside `"unsupported_opcodes"` and `"pixel_lowering_rejected"` in `report()`. `missing_root_signature` still takes precedence; absent manifest entries stay `needs_evidence`. - `tests/pso_readiness_check.py`: tests both `disassembly_failed` paths (empty stream and `ValueError`), `first_blocker`, precedence, single-scan caching, and `needs_evidence`. Independent fix; no open PR edits `tools/pso_readiness.py` (PR #341 edits an unrelated function in `tests/pso_readiness_check.py`). ## Verification Commit `6669325` (base `6549244`), Ubuntu 24.04 x86_64, Python 3.12.16, LLVM 15.0.7 (`libLLVM-15.so.1`). Before/after (`tools/pso_readiness.py --llvm libLLVM-15.so.1`, synthetic `\xff\xff\xff\xff` and `b""` pixel files): - Before (`6549244`): both `status='needs_evidence'`, `first_blocker=None` - After (`6669325`): both `status='blocked'`, `first_blocker={'reason': 'disassembly_failed', 'stage': 'pixel', 'detail': ...}` ```bash ./out/pe-env/bin/python -B tests/pso_readiness_check.py for t in tests/script_state_check.py tests/bcpack_check.py tests/form_coverage_check.py tests/resource_ranges_check.py tests/sgd5_effects_check.py tests/dxcontainer_part_offsets_check.py tests/layout_chunks_check.py tests/dependency_paths_check.py tests/intake/paths_check.py tests/shader_probe_check.py tests/dxil_retarget_check.py tests/rdna2_tools_check.py tests/docs_links_check.py tests/bidi_controls_check.py tests/gpu_report_format_check.py; do ./out/pe-env/bin/python -B "$t"; done ./out/pe-env/bin/python -B tests/pixel_aot_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1 ./out/pe-env/bin/python -B tests/ffx_dispatch_aot_check.py llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1 LLVM_LIB=libLLVM-15.so.1 LLVM_MC=llvm-mc-15 LLVM_OBJCOPY=llvm-objcopy-15 ./out/pe-env/bin/python -B tests/rdna2_tools_check.py ``` - `pso_readiness_check.py`: `PSO census, evidence states, and native hash control passed` - All 16 pure-Python + 3 LLVM 15 checks passed (`rdna2_tools_check.py` w/ `LLVM_LIB`: 26 tests, 0 skips). - Windows C++/HLSL/WARP checks not run locally (relies on `build-and-test` CI). ## Evidence and follow-up Synthetic inputs only (MIT License). Negative controls: `missing-root` keeps `missing_root_signature` ahead of `disassembly_failed`; `absent-record` stays `needs_evidence`. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. _AI-assisted._
upstream-sync closed this pull request 2026-11-24 06:42:54 +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!404
No description provided.