shader: add end-to-end v_fma_mix modifier lowering controls #772
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!772
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/772/head"
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?
@Ammmae0x on GitHub · 2026-11-23 02:01 UTC · original
Ammmae0x:shader/disasm-fma-mix-e2e-controls→main· +78 −1 · 1 files · 1 commits · merged 2026-11-23 02:29 UTCChange
Follow-up to PR #762 (Refs #745, Refs #762) to add end-to-end
disasm_rdna2->pixel_aot.lowerregression controls andgfx1013parity test cases intests/rdna2_tools_check.py:disasm_rdna2->pixel_aot.lowercheck on a minimal synthetic pixel shader exercising asymmetricv_fma_mix_f32andv_fma_mixhi_f16modifiers (abs,neg,op_sel,op_sel_hi,clamp) alongside packedv_pk_add_f16/v_pk_mul_f16(op_sel,op_sel_hi,neg_lo,neg_hi).neg_loonv_fma_mix_f32raisesValueError.v_pk_add_f16,v_pk_mul_f16,v_fma_mix_f32, andv_fma_mixhi_f16modifier test cases to thegfx1013LLVM parity comparison list.Verification
Verified on Windows (commit
deb02d6onmainfdd7158) after loading.\tools\dev.ps1:.\out\pe-env\Scripts\python.exe -B tests/rdna2_tools_check.py->57passed,1skipped (test_llvm_comparison:LLVM_LIBenvironment variable not set on this host),0failed (58total).ctest --preset dev --no-tests=error -R "^rdna2_tools_check$" -V->1/1passed (inner unittest:57passed,1skippedtest_llvm_comparison,0failed).ctest --preset release --no-tests=error -R "^rdna2_tools_check$" -V->1/1passed (inner unittest:57passed,1skippedtest_llvm_comparison,0failed)..\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py-> passed (13Markdown files,143links,0failed; self-test passed)..\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py-> passed (626tracked files,0bidirectional controls; self-test passed)..\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py-> passed.Note:
test_llvm_comparisonrequiresLLVM_LIB(LLVM 15gfx1013), which is not configured locally and is expected to run in CI whereLLVM_LIBis set.Evidence and follow-up
All tests use synthetic instruction encodings constructed directly in
tests/rdna2_tools_check.py(no external or game shader binaries). Both a positive control (swappedabs/negmodifiers producing distinct HLSL) and a negative control (rejectingneg_loonv_fma_mix_f32withValueError) are included. No build steps or README capabilities changed.Checklist
AI-assisted.