tooling: assess compute stages by ISA recognition in the PSO readiness report #1188

Merged
tedin7 merged 1 commit from upstream-pr/1195 into main 2026-11-24 04:08:15 +00:00
tedin7 commented 2026-11-24 03:27:34 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:27:34Z.


Change

PSO readiness now assesses compute stages instead of reporting stage_not_assessed. With --llvm, the native code is disassembled (gfx1013) and every opcode is checked against the scanner's recognized RDNA 2 set. Refs the PSO readiness report in docs/experiments.md.

The lowering is deliberately not run: compute_store_aot.lower needs a table register, descriptor offsets, group registers and a thread group size that neither native code nor the manifest supplies. A guessed probe would report a binding mismatch as a shader defect, or a coincidental match as readiness. So a recognized compute stage reports compute_isa_recognized with that reason, and the pipeline stays needs_evidence; it never reaches needs_pso_validation. An unrecognized opcode is an unsupported_opcodes blocker; a failure while scanning is contained as compute_scan_failed.

AI-assisted. No claim that any title works.

Verification

  • python3 -B tests/pso_readiness_check.py: passes (mesh, compute and census sections).
  • Same new test against origin/main tools/pso_readiness.py: fails (stage_not_assessed).
  • Ad hoc with LLVM 19: assembled two compute fixtures from tests/compute_store_check.py with llvm-mc-19, disassembled with the real library, both report compute_isa_recognized.
  • python3 -B tests/rdna2_tools_check.py: OK. python3 -B tests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 <libLLVM-19>: passes.

Evidence and follow-up

  • Negative controls: a mutated opcode flips the stage to unsupported_opcodes; empty and undecodable streams stay disassembly_failed; a malformed line is contained.
  • No new lowering, store or atomic is added, so no readback or memory-window test applies.
  • Follow-up: a binding-aware compute verdict needs caller-supplied bindings in the pipeline metadata.

Checklist

  • docs/experiments.md updated
  • test fails before, passes after
  • exceptions contained in the tool caller
  • title-neutral, clean-room
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6573942012 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1195). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T03:27:34Z. --- ## Change PSO readiness now assesses `compute` stages instead of reporting `stage_not_assessed`. With `--llvm`, the native code is disassembled (gfx1013) and every opcode is checked against the scanner's recognized RDNA 2 set. Refs the PSO readiness report in docs/experiments.md. The lowering is deliberately not run: `compute_store_aot.lower` needs a table register, descriptor offsets, group registers and a thread group size that neither native code nor the manifest supplies. A guessed probe would report a binding mismatch as a shader defect, or a coincidental match as readiness. So a recognized compute stage reports `compute_isa_recognized` with that reason, and the pipeline stays `needs_evidence`; it never reaches `needs_pso_validation`. An unrecognized opcode is an `unsupported_opcodes` blocker; a failure while scanning is contained as `compute_scan_failed`. AI-assisted. No claim that any title works. ## Verification - `python3 -B tests/pso_readiness_check.py`: passes (mesh, compute and census sections). - Same new test against origin/main `tools/pso_readiness.py`: fails (`stage_not_assessed`). - Ad hoc with LLVM 19: assembled two compute fixtures from tests/compute_store_check.py with llvm-mc-19, disassembled with the real library, both report `compute_isa_recognized`. - `python3 -B tests/rdna2_tools_check.py`: OK. `python3 -B tests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 <libLLVM-19>`: passes. ## Evidence and follow-up - Negative controls: a mutated opcode flips the stage to `unsupported_opcodes`; empty and undecodable streams stay `disassembly_failed`; a malformed line is contained. - No new lowering, store or atomic is added, so no readback or memory-window test applies. - Follow-up: a binding-aware compute verdict needs caller-supplied bindings in the pipeline metadata. ## Checklist - [x] docs/experiments.md updated - [x] test fails before, passes after - [x] exceptions contained in the tool caller - [x] title-neutral, clean-room
upstream-sync closed this pull request 2026-11-24 06:46:50 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:50:15 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T03:32:15Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T03:35:04.767571Z 008a7ba Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7121190254 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1195#issuecomment-7121190254). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T03:32:15Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"008a7bad3cf63f5532a8f8429eea5bbc15d8295f","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T03:35:04.767571Z">2026-11-24T03:35:04.767571Z</relative-time> | `008a7ba` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
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!1188
No description provided.