tooling: assess mesh lowering in PSO readiness #1097
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1104"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T01:04:05Z.
Change
Refs #259. Extend
pso_readiness.py --llvmto disassemble matched mesh shaders with wave64 byte offsets and runmesh_entry_aot.lower. Report lowering rejection and disassembly failure with stage-specific diagnostics. A passing mesh probe with a present root signature leaves the pipeline inneeds_pso_validation. This uses the mesh translator already on main and has no dependency on #1080.Verification
Linux x64, Python 3.14.8, LLVM 19, commit
065d7662, baselineb9beb159.python3 -B tests/pso_readiness_check.pybuild-a-turno python3 -B tests/mesh_entry_check.py binary llvm-mc-19 llvm-objcopy-19 libLLVM.so.19.1python3 -B tests/docs_links_check.pypython3 -B tests/bidi_controls_check.pygit diff --checkNegative control with the new test and the baseline implementation, expected exit 1 and observed exit 1. The triangle reported
stage_not_assessedandneeds_evidenceinstead of passing the mesh probe.The CLI also passed a run with assembled gfx1013 bytes and the real LLVM library. The only pipeline reported
mesh_lowering_passed,needs_pso_validationand a null blocker.The wider LLVM 19 checks reproduced the same failures on the unchanged baseline:
build-a-turno python3 -B tests/pixel_aot_check.py binary llvm-mc-19 llvm-objcopy-19 libLLVM.so.19.1exited 1 on thev_cvt_f16_i16_e32immediate encoding.build-a-turno env LLVM_LIB=libLLVM.so.19.1 LLVM_MC=llvm-mc-19 LLVM_OBJCOPY=llvm-objcopy-19 python3 -B tests/rdna2_tools_check.pyran 101 tests with two failures and one error. The same three tests failed on the baseline.libLLVM-19.so.1; the installed library islibLLVM.so.19.1. CI uses LLVM 15.Evidence and follow-up
The MIT-licensed triangle fixture comes from
tests/mesh_entry_check.py. The report test replaces only the LLVM boundary and exercises the real lowerer. Its allocation negative control replaces the value written tom0with zero. The probe uses synthetic geometry and a 128-thread triangle declaration, as described in the updated experiment. Actual bindings and PSO creation require separate validation. No GPU commands or readback were added. Local Windows tests require an x64 Windows host.Checklist
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T01:08:40Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
065d766258ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T01:04:15Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
065d766ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T01:12:49Z.
AI-assisted. Addressed the P2 finding in
01c992ae: unexpected exceptions from the mesh lowering probe (for example an IndexError from a scalar op with an unsupported operand shape) are now contained. The shader is reported asmesh_lowering_rejectedwith a short reason, the pipeline isblocked, and the report continues without a traceback.Verification:
python3 -B tests/pso_readiness_check.pypasses with the new synthetics_getpc_b64 s[0:1]case; with the previoustools/pso_readiness.pythe same test fails with an IndexError.python3 -B tests/rdna2_tools_check.pyOK.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T01:08:40Z.
Code review location:
tools/pso_readiness.py; line 45When a referenced mesh shader contains the legal but unsupported instruction
s_getpc_b64 s[0:1], the lowerer'sscalar_op()raisesIndexErroratvals[0], which this handler does not catch. Prepending that instruction to the source-built triangle fixture and assembling/disassembling it with LLVM 20 on Linux reproduces an exit-1 traceback with no JSON output. Consequently, one out-of-profile mesh shader aborts the entire readiness report instead of receivingmesh_lowering_rejected, discarding results for unrelated pipelines. Contain these lowerer exceptions at the per-shader boundary, as the pixel scanner already does.Useful? React with 👍 / 👎.