ffx: reject unsupported ALU and packed modifiers in dispatch AOT #562
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/568"
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 Neoplayer on 2026-11-22T12:47:42Z.
Change
Reject unsupported or silently dropped instruction modifiers in
tools/ffx_dispatch_aot.pyinstead of emitting incorrect HLSL:packed_op(), parsemods.split()strictly: reject unknown tokens, duplicate modifiers, mismatchedop_sel/op_sel_hi/neg_lo/neg_hivector lengths, andclampon integer (_u16) packed ops (wheresaturate(...)was previously emitted).alu(), rejectFLOATmodifiers other than""and"mul:2"(such asclamp,mul:4,div:2, or combinedclamp mul:2), and reject non-emptymodson non-FLOATops other thandot4_i32_i8.clampfollowed by another modifier (clamp(?: |$)) inpredecessor()andtranslate().Adds
gfx1013llvm-mcpositive and negative modifier controls intests/ffx_dispatch_aot_check.py.Verification
d3586ddarm64), Python 3.12.13 (out/pe-env), Homebrew LLVM 15.0.7 (llvm@15)LLVM="$(brew --prefix llvm@15)"):./out/pe-env/bin/python -B tests/ffx_dispatch_aot_check.py "$LLVM/bin/llvm-mc" "$LLVM/bin/llvm-objcopy" "$LLVM/lib/libLLVM-15.dylib"-> exit 0./out/pe-env/bin/python -B tests/pixel_aot_check.py binary "$LLVM/bin/llvm-mc" "$LLVM/bin/llvm-objcopy" "$LLVM/lib/libLLVM-15.dylib"-> exit 0./out/pe-env/bin/python -B tests/bidi_controls_check.py->Self-test passed. Checked 549 tracked source, script and build/CI files: no bidirectional controls.git diff --check-> exit 0build-and-test).Evidence and follow-up
All new controls in
tests/ffx_dispatch_aot_check.pyare original inlinegfx1013assembly snippets assembled withllvm-mcand synthetic instruction lines under the repository's MIT license.Checklist
AI-assisted.