shader: lower IEEE multiply and lt, le and ge kills in the sampled coverage translator #1147
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1154"
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:54:09Z.
Change
AI-assisted. Extends
tools/sampled_coverage_aot.pyso the coverage-only sampled pixel translator acceptsv_mul_f32_e32(IEEE multiply) besidev_mul_legacy_f32_e32, and the kill comparisonsv_cmpx_lt_f32_e32,v_cmpx_le_f32_e32andv_cmpx_ge_f32_e32besidev_cmpx_gt_f32_e32. Before, any of them raised "Unsupported coverage instruction". The legacy multiply and the greater-than output are unchanged. Related earlier work: #497 (merged). No overlapping open PR found (gh pr list --state open --search sampled_coverage).Verification
LLVM 19 locally (CI uses LLVM 15, not available here), on top of main
edee8d07:python3 -B tests/sampled_coverage_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.so: exit 0 with the change. It assembles four new programs, runs the translator CLI on each and compares withlower.tools/sampled_coverage_aot.pyfrom main: fails withValueError: Unsupported coverage instruction v_mul_f32_e32.python3 -B tests/rdna2_tools_check.py: OK (106 tests, 10 skipped).draw_ops(run by the existingsampled_coverage_<adapter>CTest). It needs dxc and a D3D12 adapter, which this Linux host lacks. No WARP or GPU readback of these forms has been observed yet; the CI result on this pull request is the first measurement. Capability skip is exit 77 as before.Evidence and follow-up
v_cmpx_lg_f32,v_cmpx_lt_f64, swapped compare operands, a VGPR as first multiply source,v_mul_f16,v_add_f32and a product read befores_waitcnt vmcnt(0).docs/experiments.md"Coverage-only texture sampling" updated.Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T02:26:25Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
20bd771ℹ️ 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.