shader: derive the scanner's pixel ALU forms from pixel_aot #296
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/300"
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 Vonsek on 2026-11-21T21:26:44Z.
Change
tools/scan_unsupported_shaders.pykept its own list of vector ALU opcodes. It had drifted frompixel_aot.ALU:v_floor_f32,v_fract_f32andv_trunc_f32were not recognized, sopso_readinessreportedunsupported_opcodesfor pipelines thatpixel_aotalready lowers. The supported-instruction regex also omitted the add/mul/sqrt/rsq/floor/fract/trunc/subrev forms.The scanner now builds
SUPPORTED_ALU, the supported-instruction regex alternation and the recognized opcode set frompixel_aot.ALU.pixel_aotwas already imported by the scanner, so there is no new dependency or import cycle.PRs that add entries to
pixel_aot.ALU(#274, #169, #232, #257) need no scanner edit once this lands. #274 also edits the scanner opcode list; its ceil/rndne entries become redundant but do not conflict semantically.Verification
python -B tests/pso_readiness_check.py: a pipeline whose shader usesv_floor_f32,v_fract_f32,v_trunc_f32,v_add_f32andv_mul_f32isneeds_pso_validation; a new check asserts everypixel_aot.ALUentry is recognized and supported by the scanner.unsupported_opcodes: v_floor_f32_e32, v_fract_f32_e32, v_trunc_f32_e32, and the drift check fails onv_sqrt_f32.ctest --preset dev --no-tests=error -R '^pso_readiness_check$' -Vat02dbbd4on Windows 11 build 26200.9974, VS Build Tools 2022 17.14 (MSVC 14.44.35207), Windows SDK 10.0.26100, Python 3.12: passed.tests/rdna2_tools_check.pyalso passes (27 tests, 1 skipped). The fullctest --preset dev --no-tests=errorpassed 136/136, withbvh_wave64_hardware,bvh_wave64_warpandwave_shuffle_warpskipped.Evidence and follow-up
Only entries in
pixel_aot.ALUare derived. Other lowered families (compares, conversions, scalar ops) still rely on the scanner's own lists; the compare family is already covered by thev_cmp_prefix rule.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T21:31:11Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
02dbbd4ℹ️ 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.