shader: lower the e64 spellings of the sampled coverage multiply and kill compare #1194
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1201"
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-24T03:31:54Z.
Change
AI-assisted. Extends
tools/sampled_coverage_aot.pyso the coverage-only sampled pixel translator also accepts the VOP3 (_e64) spellings ofv_mul_legacy_f32,v_mul_f32andv_cmpx_{lt,le,gt,ge}_f32, in any pairing with the VOP2 spellings. Before, an e64 form raised "Unsupported coverage instruction". The e64 form is lowered only as plain registers: clamp,mul:/div:output scale, negate, absolute value, swapped operands, special registers (vcc_lo,exec_lo,null) and inline constants are rejected with an explicit error (both forms now check operands, so no modifier text can be silently ignored). Follows #1154. No overlapping open PR found (gh pr list --state open --search sampled_coverage).Verification
Local, on top of main
d1ea005d. LLVM 15.0.6 was taken from the Debian packages (libllvm15,llvm-15, extracted without installing); LLVM 19 was also run:python3 -B tests/sampled_coverage_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1(LLVM 15 binaries): exit 0.llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.so: exit 0.ValueError: Unsupported coverage instruction v_mul_f32_e64.python3 -B tests/rdna2_tools_check.py: OK (121 tests, 13 skipped).git diff --check: clean.draw_ops(needs dxc and a D3D12 adapter; this Linux host has neither). Only its Python control flow was exercised with a stubbed renderer (180 calls, no error). The CI result on this pull request is the first measurement.Evidence and follow-up
lower; each lowers to the same HLSL as its e32 program on both textures. 58 mutated e64 forms (clamp, mul/div, negate, abs, swapped operands, special registers, constants) are rejected with the operand-check message, and the same forms assembled by the real LLVM make the CLI exit 2 and write no output. Wrong mnemonics (f64,lg,class,v_cmp_,f16,add,sub), a missing operand and a product read befores_waitcnt vmcnt(0)are rejected too.sampled_coverage_<adapter>CTest limit raised from 60 to 150 s for the extra draws.docs/experiments.md"Coverage-only texture sampling" updated.Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T03:37:58Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
f9a01b3ℹ️ 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.